Files
0ad/source/ps
Ralph Sennhauser f10526284f Don't map unknown scancodes to hotkeys
Users may generate key presses that don't map to a distinct SDL scancode
and will be mapped SDL_SCANCODE_UNKNOWN instead. Using the same ID for
unmapped hotkeys means any such key press will execute unset hotkeys. As
luck would have it in #7644 this leads to calling "Custom exit to
desktop" if the hotkey is unbound as is the default.

So simply use a code for unused hotkeys that doesn't map to any SDL
scancodes.

Fixes: #7644
Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2025-03-15 20:33:03 +01:00
..
2024-12-09 10:43:35 +01:00
2024-11-17 18:03:49 +01:00
2024-12-27 19:32:03 +01:00
2024-12-10 11:29:48 +01:00
2024-12-10 11:29:48 +01:00
2025-02-10 18:11:02 +01:00
2025-01-30 21:15:28 +01:00
2025-01-06 06:59:14 +01:00
2024-12-05 17:49:16 +01:00
2024-12-19 21:36:51 +01:00
2024-12-19 21:36:51 +01:00
2024-10-08 23:07:18 +02:00