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;
|
context->frameCallback = _pauseAfterFrame;
|
||||||
mCoreThreadUnpause(context);
|
mCoreThreadUnpause(context);
|
||||||
return;
|
return;
|
||||||
#ifdef BUILD_PANDORA
|
|
||||||
case SDLK_ESCAPE:
|
case SDLK_ESCAPE:
|
||||||
mCoreThreadEnd(context);
|
mCoreThreadEnd(context);
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
default:
|
default:
|
||||||
if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) {
|
if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) {
|
||||||
switch (event->keysym.sym) {
|
switch (event->keysym.sym) {
|
||||||
|
|
Loading…
Reference in New Issue