diff options
author | cpasjuste <cpasjuste@gmail.com> | 2020-04-23 09:56:49 +0200 |
---|---|---|
committer | cpasjuste <cpasjuste@gmail.com> | 2020-04-23 09:56:49 +0200 |
commit | 177077c6563245504e4aa443cce3bdba7c65db42 (patch) | |
tree | a2ce14abef48e684b2a52f7da6661449a113c6bb /src/input/joystick.cpp | |
parent | 94162704b6ffe557b65d70faa4b82e082039f75e (diff) | |
download | plus-177077c6563245504e4aa443cce3bdba7c65db42.tar.gz plus-177077c6563245504e4aa443cce3bdba7c65db42.tar.bz2 plus-177077c6563245504e4aa443cce3bdba7c65db42.tar.xz plus-177077c6563245504e4aa443cce3bdba7c65db42.zip |
switch: enable sound and keyboard button by default, disable joysticks for now
Diffstat (limited to 'src/input/joystick.cpp')
-rw-r--r-- | src/input/joystick.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/input/joystick.cpp b/src/input/joystick.cpp index 34f2619b9..814affa46 100644 --- a/src/input/joystick.cpp +++ b/src/input/joystick.cpp @@ -178,12 +178,14 @@ bool Joystick::open() mButtonsNumber = MAX_BUTTONS; #ifdef __SWITCH__ + /* config.setValue("joystick" + toString(mNumber) + "calibrated", true); - config.setValue("leftTolerance" + toString(mNumber), 100); - config.setValue("rightTolerance" + toString(mNumber), 100); - config.setValue("upTolerance" + toString(mNumber), 100); - config.setValue("downTolerance" + toString(mNumber), 100); - config.setValue("useInactiveJoystick", 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); + */ #endif mCalibrated = config.getValueBool("joystick" + toString(mNumber) + "calibrated", false); |