summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/defaults.cpp2
-rw-r--r--src/input/joystick.cpp11
2 files changed, 5 insertions, 8 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp
index b566c3206..3ece72195 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -185,7 +185,7 @@ void setConfigDefaults(Configuration &cfg)
AddDEF("useScreenshotDirectorySuffix", true);
AddDEF("screenshotDirectorySuffix", "");
#ifdef __SWITCH__
- AddDEF("joystickEnabled", false);
+ AddDEF("joystickEnabled", true);
#else
AddDEF("joystickEnabled", false);
#endif
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);