mirror of
https://github.com/libretro/RetroArch.git
synced 2024-10-08 07:03:30 +00:00
Add a hack to "fix" endless loop when using axis to change fullscreen.
This commit is contained in:
parent
b249c9d38f
commit
08e1c5f0fd
@ -132,6 +132,10 @@ static void sdl_input_free(void *data)
|
||||
{
|
||||
if (data)
|
||||
{
|
||||
// Flush out all pending events.
|
||||
SDL_Event event;
|
||||
while (SDL_PollEvent(&event));
|
||||
|
||||
sdl_input_t *sdl = data;
|
||||
for (int i = 0; i < sdl->num_joysticks; i++)
|
||||
SDL_JoystickClose(sdl->joysticks[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user