mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-11 02:01:06 +00:00
bbde4e2a81
If we can't map a SDL_KEYDOWN/KEYUP events SDL_Keycode to a known Quake2 K_* keycode, we try to map the SDL_Scancode to one of the new K_SC_* YQ2 scancodes instead. The scancode name corresponds to the key at that position on US-QWERTY keyboards *not* the one in the local layout, for example the German 'Ö' key is K_SC_SEMICOLON. This way (hopefully!) all keys on common keyboards can be bound, regardless of their layout. The key name won't be immediately obvious to the user, but it's only a fallback and better than nothing. fixes #543 |
||
---|---|---|
.. | ||
backends | ||
client | ||
common | ||
game | ||
server | ||
win-wrapper |