From fb95def24c42392fe79b6ab672b5a6edc7210195 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Fri, 24 Apr 2020 09:59:06 +0200 Subject: switch: fix joystick directions --- src/input/joystick.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/input') 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); -- cgit v1.2.3-70-g09d2