mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix ^C not exiting emulator (SDL 2.0.4+ only)
This commit is contained in:
parent
91a66c9346
commit
ce647c8613
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue