mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
9f4a32f88b
This hack was simulating repeated key presses (EVENT_KEYDOWN, then EVENT_KEYUP) for the arrow keys like the ones a physical keyboard sends The hack could potentially cause further issues like spamming the events queue with many unnecessary events, and sending the events too quickly for some engines to handle (thus missing some of them). We're now making use of the allowKbdRepeats() for the Up/Down/Left/Right event actions in the gui-manager, which will handle the case of a key being kept pressed, sending an initial EVENT_KEYDOWN event and then subsequent EVENT_KEYDOWN events with the kbdRepeat flag set, and finally a single EVENT_KEYUP in the end. Android itself handles repeated key events similarily (instead of a kbdRepeat flag, it updates a counter for the key repeats, which we translate to a simple flag). This (and the hack that this replaces) affect things like moving the selection in the GUI lists (like the added games list) upwards or downwards continuously while keeping the respective arrow key from the Android virtual keyboard pressed down. |
||
---|---|---|
.. | ||
3ds | ||
android | ||
atari | ||
dc | ||
dingux | ||
ds | ||
gph | ||
ios7 | ||
libretro | ||
maemo | ||
n64 | ||
null | ||
openpandora | ||
psp | ||
samsungtv | ||
sdl | ||
wii |