mirror of https://github.com/mgba-emu/mgba.git
Revert "SDL: Fix keyrepeat causing thread interruptions"
This reverts commit 932b8117a4
.
This commit is contained in:
parent
a823a706c3
commit
182efc916e
|
@ -410,7 +410,7 @@ static void _mSDLHandleKeypress(struct mCoreThread* context, struct mSDLPlayer*
|
||||||
if (!event->keysym.mod) {
|
if (!event->keysym.mod) {
|
||||||
key = mInputMapKey(sdlContext->bindings, SDL_BINDING_KEY, event->keysym.sym);
|
key = mInputMapKey(sdlContext->bindings, SDL_BINDING_KEY, event->keysym.sym);
|
||||||
}
|
}
|
||||||
if (key != -1 && !event->repeat) {
|
if (key != -1) {
|
||||||
mCoreThreadInterrupt(context);
|
mCoreThreadInterrupt(context);
|
||||||
if (event->type == SDL_KEYDOWN) {
|
if (event->type == SDL_KEYDOWN) {
|
||||||
context->core->addKeys(context->core, 1 << key);
|
context->core->addKeys(context->core, 1 << key);
|
||||||
|
|
Loading…
Reference in New Issue