summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-04-04 14:30:14 +0300
committerewewukek <ewewukek@gmail.com>2024-04-04 14:30:14 +0300
commit76b8c48d441487accff8eeb7027108ddcf2c98d0 (patch)
tree0a1b5d8925b590bfc48a34ce3e134a93325bba8f
parent21e3230244dae0da04571c405d075bddc87bdb89 (diff)
downloadmanaverse-76b8c48d441487accff8eeb7027108ddcf2c98d0.tar.gz
manaverse-76b8c48d441487accff8eeb7027108ddcf2c98d0.tar.bz2
manaverse-76b8c48d441487accff8eeb7027108ddcf2c98d0.tar.xz
manaverse-76b8c48d441487accff8eeb7027108ddcf2c98d0.zip
Enable joystick by default, update default tolerance
-rw-r--r--src/defaults.cpp6
-rw-r--r--src/input/joystick.cpp3
2 files changed, 1 insertions, 8 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp
index 2c990c42f..3c663309f 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -189,12 +189,8 @@ void setConfigDefaults(Configuration &cfg)
AddDEF("screenshotDirectory3", "");
AddDEF("useScreenshotDirectorySuffix", true);
AddDEF("screenshotDirectorySuffix", "");
-#ifdef __SWITCH__
AddDEF("joystickEnabled", true);
-#else
- AddDEF("joystickEnabled", false);
-#endif
- AddDEF("joystickTolerance", 0.1F);
+ AddDEF("joystickTolerance", 0.3F);
AddDEF("useHatForMovement", true);
AddDEF("logNpcInGui", true);
AddDEF("download-music", true);
diff --git a/src/input/joystick.cpp b/src/input/joystick.cpp
index 1072d3892..ea1883ad0 100644
--- a/src/input/joystick.cpp
+++ b/src/input/joystick.cpp
@@ -207,9 +207,6 @@ bool Joystick::open()
if (mButtonsNumber > MAX_BUTTONS)
mButtonsNumber = MAX_BUTTONS;
-#ifdef __SWITCH__
- config.setValue("joystickTolerance", 0.1F);
-#endif
mTolerance = config.getFloatValue("joystickTolerance");
mUseHatForMovement = config.getBoolValue("useHatForMovement");
mUseInactive = config.getBoolValue("useInactiveJoystick");