Fix bug in SDL2 controller backend

This commit is contained in:
Clownacy 2020-04-11 22:17:53 +01:00
parent b2679edf37
commit ba2f43bc67

View file

@ -81,7 +81,7 @@ BOOL ControllerBackend_GetJoystickStatus(JOYSTICK_STATUS *status)
}
// Then the joystick hats
for (int i = 0; i < total_axes; ++i)
for (int i = 0; i < total_hats; ++i)
{
Uint8 hat = SDL_JoystickGetHat(joystick, i);