gamepad: Fix inability to disable SDL_EVENT_GAMEPAD_UPDATE_COMPLETE events
This commit is contained in:
@@ -405,6 +405,7 @@ static bool SDLCALL SDL_GamepadEventWatcher(void *userdata, SDL_Event *event)
|
||||
{
|
||||
SDL_AssertJoysticksLocked();
|
||||
|
||||
if (SDL_EventEnabled(SDL_EVENT_GAMEPAD_UPDATE_COMPLETE)) {
|
||||
for (gamepad = SDL_gamepads; gamepad; gamepad = gamepad->next) {
|
||||
if (gamepad->joystick->instance_id == event->jdevice.which) {
|
||||
SDL_Event deviceevent;
|
||||
@@ -416,6 +417,7 @@ static bool SDLCALL SDL_GamepadEventWatcher(void *userdata, SDL_Event *event)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user