From: Toni Wilen Date: Sun, 1 Jan 2023 15:19:14 +0000 (+0200) Subject: Disable left/right joystick autoswitch X-Git-Tag: 41010~36 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3a509693e9644fceec6f4036f16123d4ae955e67;p=francis%2Fwinuae.git Disable left/right joystick autoswitch --- 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++) {