all repos — mgba @ 182efc916e0a21522f2277742fedbc23fb4c8aac

mGBA Game Boy Advance Emulator

Revert "SDL: Fix keyrepeat causing thread interruptions"

This reverts commit 932b8117a4d83632534536a8b87b8dafcafefbe0.
Vicki Pfau vi@endrift.com
Sat, 14 Jul 2018 13:31:33 -0700
commit

182efc916e0a21522f2277742fedbc23fb4c8aac

parent

a823a706c3b70f59cde7cf73cd1d7c47e5d1909b

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

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

@@ -410,7 +410,7 @@ int key = -1;

if (!event->keysym.mod) { key = mInputMapKey(sdlContext->bindings, SDL_BINDING_KEY, event->keysym.sym); } - if (key != -1 && !event->repeat) { + if (key != -1) { mCoreThreadInterrupt(context); if (event->type == SDL_KEYDOWN) { context->core->addKeys(context->core, 1 << key);