Fix bug in SDL2 controller backend
This commit is contained in:
parent
b2679edf37
commit
ba2f43bc67
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue