From 182f11f0178b8ee1f4c624015f241dcbc87d9402 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 11 Sep 2019 17:51:20 +0000 Subject: [PATCH] Fix controller support Pressing up or down wouldn't work. --- src/Input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input.cpp b/src/Input.cpp index 1cb38bd7..9cdb4a15 100644 --- a/src/Input.cpp +++ b/src/Input.cpp @@ -80,7 +80,7 @@ BOOL GetJoystickStatus(JOYSTICK_STATUS *status) else if (joystick_x > joystick_neutral_x + 10000) status->bRight = TRUE; - const Sint16 joystick_y = SDL_JoystickGetAxis(joystick, 0); + const Sint16 joystick_y = SDL_JoystickGetAxis(joystick, 1); if (joystick_y < joystick_neutral_y - 10000) status->bUp = TRUE; else if (joystick_y > joystick_neutral_y + 10000)