scummvm/backends/events
Thierry Crozat e302590cab SDL: Improve AmigaOS workaround for numpad
The previous workaround was introduced to fix fighting using the keypad
in Indy 3. It enforced genering a number on KEYCODE_KP# events even
when KBD_NUM is not set. The issue on AmigaOS is that SDL never reports
KBD_NUM as being set. Instead we get different keycodes depending if
numlock is on or off (e.g. KEYCODE_KP3 and KEYCODE_PAGEDOWN).

The new workaround is to set the KBD_NUM modifier whenever we receive
a KEYCODE_KP# event from SDL. This way we also generate a number, but
in addition this is consistent with the modifier and works with code
that checks the KDB_NUM modifier (such as the GUI code or the AGI
engine).
2022-03-13 21:33:39 +00:00
..
default JANITORIAL: "Mac OS X" and "OS X" to "macOS" in comments 2022-01-29 14:15:05 +01:00
dinguxsdl ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
ds ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
gph ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
maemosdl ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
openpandora ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
ps3sdl ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
psp2sdl ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
riscossdl ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
samsungtvsdl ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
sdl SDL: Improve AmigaOS workaround for numpad 2022-03-13 21:33:39 +00:00
switchsdl ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00