Fix controller support
Pressing up or down wouldn't work.
This commit is contained in:
parent
09ed7a9a9f
commit
182f11f017
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ BOOL GetJoystickStatus(JOYSTICK_STATUS *status)
|
||||||
else if (joystick_x > joystick_neutral_x + 10000)
|
else if (joystick_x > joystick_neutral_x + 10000)
|
||||||
status->bRight = TRUE;
|
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)
|
if (joystick_y < joystick_neutral_y - 10000)
|
||||||
status->bUp = TRUE;
|
status->bUp = TRUE;
|
||||||
else if (joystick_y > joystick_neutral_y + 10000)
|
else if (joystick_y > joystick_neutral_y + 10000)
|
||||||
|
|
Loading…
Add table
Reference in a new issue