mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-03-02 23:42:28 +00:00
The first row of AZERTY-Keyboards (used in France and Belgium) doesn't have numbers as keys but ², &, é, ", ', (, -, è, _, ç, à, ), = (with small differences between France and Belgium). For some of those keys we don't have keycodes - and neither does SDL2. See also https://bugzilla.libsdl.org/show_bug.cgi?id=3188 As a workaround, just map those keys to 1, 2, ..., 9, 0 anyway, as those are keys Quake2 already knows (and those chars are printed on the keys too, for typing they're reachable via shift). This workaround only works for SDL2, as SDL1.2 doesn't have scancodes which we need scancodes to identify the keys. While at it I unified handling of SDL_KEYDOWN and SDL_KEYUP, the code is almost identical anyway, apart from one bool argument to Key_Event(). We track this problem in #81 |
||
---|---|---|
.. | ||
generic | ||
sdl | ||
unix | ||
windows |