lilium-voyager/code/sdl
Zack Middleton c6a61d212a Fix SDL2 losing event subsystem
Quiting SDL Video or Joystick subsystem implies quiting the Event subsystem in SDL2.
SDL keeps track of number of init and shutdown calls for each subsystem.
Shuting down video or joystick more or equal to number of times they're inited will lead to event shutdown.

Toggling in and out of fullscreen or running in_restart twice causes SDL event subsystem to shutdown, making input not work.

If the console is closed, IN_GobbleMotionEvents gets stuck in a loop. SDL_PeepEvents returns -1 when there is an error, but we assume non-0 means read more events.

IN_ShutdownJoystick needs to check if joystick subsystem was inited before quitting it, otherwise we may cause SDL event subsystem to shutdown.
2013-10-18 16:31:19 -05:00
..
sdl_gamma.c Merge branch 'master' into sdl2 2013-05-08 14:27:15 +01:00
sdl_glimp.c Don't set the window title twice 2013-09-23 12:21:20 -05:00
sdl_icon.h Reverting. 2008-07-06 17:16:14 +00:00
sdl_input.c Fix SDL2 losing event subsystem 2013-10-18 16:31:19 -05:00
sdl_snd.c Use SDL 2 instead of SDL 1.2 2013-01-17 18:20:03 +00:00