From ce647c8613f53d30a8cece2f380def41fc041ffa Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 8 Jun 2015 20:58:53 -0700 Subject: [PATCH] SDL: Fix ^C not exiting emulator (SDL 2.0.4+ only) --- src/platform/sdl/sdl-events.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index f26ec5857..9046b4463 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -38,6 +38,9 @@ bool GBASDLInitEvents(struct GBASDLEvents* context) { 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;