all repos — mgba @ b8fe87324f8987db99ede4b3332a9ea781726e85

mGBA Game Boy Advance Emulator

SDL: Esc to quit, only on Pandora for now
Jeffrey Pfau jeffrey@endrift.com
Wed, 18 Mar 2015 23:46:13 -0700
commit

b8fe87324f8987db99ede4b3332a9ea781726e85

parent

4fa1ad7ce0cb410a677bccdb5ea63c3edc353bf8

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -158,6 +158,11 @@ GBAThreadInterrupt(context);

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) {