diff options
author | ewewukek <ewewukek@gmail.com> | 2024-01-11 13:03:53 +0300 |
---|---|---|
committer | ewewukek <ewewukek@gmail.com> | 2024-03-27 13:18:30 +0300 |
commit | 9728279062a74c4e80c7ed1c714571ae6fda2016 (patch) | |
tree | cdf9c4f81effd3e5d1a672bb85147b46290779c8 /src/input/joystick.h | |
parent | 9ccb4f7cc71443f9ed43171d4d825ba08b61943c (diff) | |
download | manaverse-9728279062a74c4e80c7ed1c714571ae6fda2016.tar.gz manaverse-9728279062a74c4e80c7ed1c714571ae6fda2016.tar.bz2 manaverse-9728279062a74c4e80c7ed1c714571ae6fda2016.tar.xz manaverse-9728279062a74c4e80c7ed1c714571ae6fda2016.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; |