SDL: Fix keyrepeat causing thread interruptions
Vicki Pfau vi@endrift.com
Sun, 28 Jan 2018 08:44:55 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/sdl/sdl-events.c
→
src/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) { + if (key != -1 && !event->repeat) { mCoreThreadInterrupt(context); if (event->type == SDL_KEYDOWN) { context->core->addKeys(context->core, 1 << key);