Permalink
Browse files
SDL: Fix keyrepeat causing thread interruptions
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/platform/sdl/sdl-events.c
|
|
@@ -410,7 +410,7 @@ static void _mSDLHandleKeypress(struct mCoreThread* context, struct mSDLPlayer* |
|
|
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);
|
|
|
|
0 comments on commit
932b811