mirror of https://github.com/mgba-emu/mgba.git
Put missing returns in SDL event handling
This commit is contained in:
parent
eb5580f719
commit
e9c4412819
|
@ -91,7 +91,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
|
|||
if (event->type == SDL_KEYDOWN && context->debugger) {
|
||||
ARMDebuggerEnter(context->debugger, DEBUGGER_ENTER_MANUAL);
|
||||
}
|
||||
break;
|
||||
return;
|
||||
case SDLK_TAB:
|
||||
context->sync.audioWait = event->type != SDL_KEYDOWN;
|
||||
return;
|
||||
|
@ -103,6 +103,7 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, struct GBASDLEvents
|
|||
if (!isPaused) {
|
||||
GBAThreadUnpause(context);
|
||||
}
|
||||
return;
|
||||
default:
|
||||
if (event->type == SDL_KEYDOWN) {
|
||||
if (event->keysym.mod & GUI_MOD) {
|
||||
|
|
Loading…
Reference in New Issue