diff options
author | ewewukek <ewewukek@gmail.com> | 2024-01-11 13:03:53 +0300 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-05-15 00:11:38 +0200 |
commit | 046ac8fceda89092f01325abbc8d2b5b8602719c (patch) | |
tree | c2d2e66ebb263161826fd8dce10162a6d09dc922 /src/input/joystick.h | |
parent | a9b4edd10420fb35679ee9aac3caa9eb8f35e6dd (diff) | |
download | plus-046ac8fceda89092f01325abbc8d2b5b8602719c.tar.gz plus-046ac8fceda89092f01325abbc8d2b5b8602719c.tar.bz2 plus-046ac8fceda89092f01325abbc8d2b5b8602719c.tar.xz plus-046ac8fceda89092f01325abbc8d2b5b8602719c.zip |
Add a checkbox for d-pad to switch between movement and button behavior
Diffstat (limited to 'src/input/joystick.h')
-rw-r--r-- | src/input/joystick.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/joystick.h b/src/input/joystick.h index bddf520a2..805efa6ad 100644 --- a/src/input/joystick.h +++ b/src/input/joystick.h @@ -139,6 +139,9 @@ class Joystick final void setTolerance(const float tolerance) { mTolerance = tolerance; } + void setUseHatForMovement(const bool b) + { mUseHatForMovement = b; } + void setUseInactive(const bool b) { mUseInactive = b; } @@ -169,6 +172,7 @@ class Joystick final float mTolerance; int mNumber; int mButtonsNumber; + bool mUseHatForMovement; bool mUseInactive; bool mHaveHats; |