diff options
author | cpasjuste <cpasjuste@gmail.com> | 2020-04-24 09:59:06 +0200 |
---|---|---|
committer | cpasjuste <cpasjuste@gmail.com> | 2020-04-24 09:59:06 +0200 |
commit | fb95def24c42392fe79b6ab672b5a6edc7210195 (patch) | |
tree | 4802156f54de4e30418b984578b91d22d837d5de /src/input | |
parent | e124615493f4f84d372a99ea604220a8e850dde1 (diff) | |
download | manaverse-fb95def24c42392fe79b6ab672b5a6edc7210195.tar.gz manaverse-fb95def24c42392fe79b6ab672b5a6edc7210195.tar.bz2 manaverse-fb95def24c42392fe79b6ab672b5a6edc7210195.tar.xz manaverse-fb95def24c42392fe79b6ab672b5a6edc7210195.zip |
switch: fix joystick directions
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/joystick.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/input/joystick.cpp b/src/input/joystick.cpp index 814affa46..7b2eb7d7b 100644 --- a/src/input/joystick.cpp +++ b/src/input/joystick.cpp @@ -178,14 +178,11 @@ bool Joystick::open() mButtonsNumber = MAX_BUTTONS; #ifdef __SWITCH__ - /* config.setValue("joystick" + toString(mNumber) + "calibrated", true); - config.setValue("leftTolerance" + toString(mNumber), 1000); - config.setValue("rightTolerance" + toString(mNumber), 1000); - config.setValue("upTolerance" + toString(mNumber), 1000); - config.setValue("downTolerance" + toString(mNumber), 1000); - //config.setValue("useInactiveJoystick", true); - */ + config.setValue("leftTolerance" + toString(mNumber), -10000); + config.setValue("rightTolerance" + toString(mNumber), 10000); + config.setValue("upTolerance" + toString(mNumber), -10000); + config.setValue("downTolerance" + toString(mNumber), 10000); #endif mCalibrated = config.getValueBool("joystick" + toString(mNumber) + "calibrated", false); |