mirror of https://github.com/mgba-emu/mgba.git
SDL: Exit the application when the escape key is pressed
This commit is contained in:
parent
af35438aaa
commit
07e328f0fd
|
@ -465,11 +465,9 @@ static void _mSDLHandleKeypress(struct mCoreThread* context, struct mSDLPlayer*
|
|||
context->frameCallback = _pauseAfterFrame;
|
||||
mCoreThreadUnpause(context);
|
||||
return;
|
||||
#ifdef BUILD_PANDORA
|
||||
case SDLK_ESCAPE:
|
||||
mCoreThreadEnd(context);
|
||||
return;
|
||||
#endif
|
||||
default:
|
||||
if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) {
|
||||
switch (event->keysym.sym) {
|
||||
|
|
Loading…
Reference in New Issue