mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix keyrepeat causing thread interruptions
This commit is contained in:
parent
c0115cfc43
commit
932b8117a4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue