SDL: Esc to quit, only on Pandora for now

This commit is contained in:
Jeffrey Pfau 2015-03-18 23:46:13 -07:00
parent 4fa1ad7ce0
commit b8fe87324f
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,11 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
GBARewind(context, 10);
GBAThreadContinue(context);
return;
#ifdef BUILD_PANDORA
case SDLK_ESCAPE:
GBAThreadEnd(context);
return;
#endif
default:
if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) {
switch (event->keysym.sym) {