]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Disable left/right joystick autoswitch
authorToni Wilen <twilen@winuae.net>
Sun, 1 Jan 2023 15:19:14 +0000 (17:19 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 1 Jan 2023 15:19:14 +0000 (17:19 +0200)
inputdevice.cpp

index f1aa8377f8ef0eb0363039bc6dfa8369b0c22e80..e70f4b0e44b87bdbff75ff5dc075c8ef9f996e2d 100644 (file)
@@ -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++) {