summaryrefslogtreecommitdiff
path: root/src/input/joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/joystick.cpp')
-rw-r--r--src/input/joystick.cpp12
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);