mirror of https://github.com/mgba-emu/mgba.git
SDL: Esc to quit, only on Pandora for now
This commit is contained in:
parent
4fa1ad7ce0
commit
b8fe87324f
|
@ -158,6 +158,11 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
|
||||||
GBARewind(context, 10);
|
GBARewind(context, 10);
|
||||||
GBAThreadContinue(context);
|
GBAThreadContinue(context);
|
||||||
return;
|
return;
|
||||||
|
#ifdef BUILD_PANDORA
|
||||||
|
case SDLK_ESCAPE:
|
||||||
|
GBAThreadEnd(context);
|
||||||
|
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