Add a hack to "fix" endless loop when using axis to change fullscreen.

This commit is contained in:
Themaister 2011-01-08 19:22:58 +01:00
parent b249c9d38f
commit 08e1c5f0fd

View File

@ -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]);