all repos — mgba @ dbc6567317605cf03d9c400b97ee3e03a960e04f

mGBA Game Boy Advance Emulator

Only make GUI_MOD SDL events happen when no other modifiers are active
Jeffrey Pfau jeffrey@endrift.com
Tue, 29 Jul 2014 22:48:55 -0700
commit

dbc6567317605cf03d9c400b97ee3e03a960e04f

parent

9873da0eb7d1b167de686a37d9e5d7902ef8f98f

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

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

@@ -101,7 +101,7 @@ GBAThreadContinue(context);

return; default: if (event->type == SDL_KEYDOWN) { - if (event->keysym.mod & GUI_MOD) { + if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) { switch (event->keysym.sym) { #if SDL_VERSION_ATLEAST(2, 0, 0) case SDLK_f: