all repos — mgba @ f0053268003218ffc5252198c0d44ac234b02ff9

mGBA Game Boy Advance Emulator

Add backslash as another frame advance key
Jeffrey Pfau jeffrey@endrift.com
Thu, 07 Aug 2014 00:23:05 -0700
commit

f0053268003218ffc5252198c0d44ac234b02ff9

parent

06da7fcb0990a490c296d20e360a323f590c7962

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

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

@@ -86,6 +86,13 @@ return;

case SDLK_TAB: context->sync.audioWait = event->type != SDL_KEYDOWN; return; + case SDLK_BACKSLASH: + if (event->type == SDL_KEYDOWN) { + GBAThreadPause(context); + context->frameCallback = _pauseAfterFrame; + GBAThreadUnpause(context); + } + return; case SDLK_LEFTBRACKET: GBAThreadInterrupt(context); GBARewind(context, 10);