From 3a509693e9644fceec6f4036f16123d4ae955e67 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 1 Jan 2023 17:19:14 +0200 Subject: [PATCH] Disable left/right joystick autoswitch --- inputdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inputdevice.cpp b/inputdevice.cpp index f1aa8377..e70f4b0e 100644 --- a/inputdevice.cpp +++ b/inputdevice.cpp @@ -8956,6 +8956,7 @@ void setjoystickstate (int joy, int axis, int state, int max) if (input_play) return; if (!joysticks[joy].enabled) { +#if 0 if (v1 > 0) v1 = 1; else if (v1 < 0) @@ -8980,6 +8981,7 @@ void setjoystickstate (int joy, int axis, int state, int max) prevdir = v1; } } +#endif return; } for (i = 0; i < MAX_INPUT_SUB_EVENT; i++) { -- 2.47.3