mirror of https://github.com/stella-emu/stella.git
prevent that repeated keys are going to emulation core
This commit is contained in:
parent
dd88e3a7fe
commit
795c892549
|
@ -865,7 +865,8 @@ void EventHandler::handleEvent(Event::Type event, bool pressed, bool repeat)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, pass it to the emulation core
|
// Otherwise, pass it to the emulation core
|
||||||
myEvent.set(event, pressed);
|
if (!repeat)
|
||||||
|
myEvent.set(event, pressed);
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
Loading…
Reference in New Issue