SDL: Fix ^C not exiting emulator (SDL 2.0.4+ only)
Jeffrey Pfau jeffrey@endrift.com
Mon, 08 Jun 2015 20:58:53 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/platform/sdl/sdl-events.c
→
src/platform/sdl/sdl-events.c
@@ -39,6 +39,9 @@ subsystem |= SDL_INIT_HAPTIC | SDL_INIT_VIDEO;
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); #endif +#if SDL_VERSION_ATLEAST(2, 0, 4) + SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1"); +#endif if (SDL_InitSubSystem(subsystem) < 0) { return false; }