Add backslash as another frame advance key

This commit is contained in:
Jeffrey Pfau 2014-08-07 00:23:05 -07:00
parent 06da7fcb09
commit f005326800
1 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,13 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
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);