all repos — mgba @ ce647c8613f53d30a8cece2f380def41fc041ffa

mGBA Game Boy Advance Emulator

SDL: Fix ^C not exiting emulator (SDL 2.0.4+ only)
Jeffrey Pfau jeffrey@endrift.com
Mon, 08 Jun 2015 20:58:53 -0700
commit

ce647c8613f53d30a8cece2f380def41fc041ffa

parent

91a66c93462cc155593d3982e8caa76a8e7bb536

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/sdl-events.csrc/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; }