SDL: Fix ^C not exiting emulator (SDL 2.0.4+ only)

This commit is contained in:
Jeffrey Pfau 2015-06-08 20:58:53 -07:00
parent 91a66c9346
commit ce647c8613
1 changed files with 3 additions and 0 deletions

View File

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