Fix non-debugger build

This commit is contained in:
Jeffrey Pfau 2014-01-19 01:24:29 -08:00
parent 7b682dd7c5
commit f2b031467f
1 changed files with 3 additions and 1 deletions

View File

@ -51,11 +51,13 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, const struct SDL_Ke
case SDLK_RIGHT:
key = GBA_KEY_RIGHT;
break;
#ifdef USE_DEBUGGER
case SDLK_F11:
if (event->type == SDL_KEYDOWN) {
if (event->type == SDL_KEYDOWN && context->debugger) {
ARMDebuggerEnter(context->debugger);
}
break;
#endif
case SDLK_TAB:
context->sync.audioWait = !context->sync.audioWait;
return;