summaryrefslogtreecommitdiff
path: root/src/input/joystick.h
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-01-11 13:03:53 +0300
committerFedja Beader <fedja@protonmail.ch>2024-05-15 00:11:38 +0200
commit046ac8fceda89092f01325abbc8d2b5b8602719c (patch)
treec2d2e66ebb263161826fd8dce10162a6d09dc922 /src/input/joystick.h
parenta9b4edd10420fb35679ee9aac3caa9eb8f35e6dd (diff)
downloadplus-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.h4
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;