dhewm3/neo/sys
Daniel Gibson ae2d3a7e99 Support (hopefully) all keyboard keys via scancodes, #323
If a key is pressed whichs SDL_Keycode isn't known to Doom3 (has no
corresponding K_* constant), its SDL_Scancode is mapped to the
corresponding newly added K_SC_* scancode constant.
I think I have K_SC_* constants for all keys that differ between
keyboard layouts (which is mostly printable characters; F1-F12, Ctrl,
Shift, ... should be the same on all layouts, which means that e.g.
SDL_SCANCODE_F1 always belongs to SDLK_F1 which the old code already
maps to Doom3's K_F1).
What's extra nice (IMO) is that when Doom3 requests a *localized* name
of the key (like for showing in the bindings menu), we actually use the
name of the SDL_Keycode that *currently* belongs to the scancode, and
esp. the "Western High-ASCII characters" (ISO-8859-1) supported by Doom3
like Ä or Ñ are displayed correctly.

(I already implemented a very similar hack in Yamagi Quake II and
 reused the list of scancodes)

This should fix most of the problems reported in #323
2021-07-15 07:00:18 +02:00
..
aros Implement clipboard support on POSIX platforms with SDL2 2021-07-03 02:25:20 +02:00
cmake Use stb_vorbis instead of libogg and libvorbis(file) 2021-04-27 20:08:59 +02:00
linux Add Posix_GetExePath() function 2021-05-12 07:44:07 +02:00
osx Add Posix_GetExePath() function 2021-05-12 07:44:07 +02:00
posix Implement clipboard support on POSIX platforms with SDL2 2021-07-03 02:25:20 +02:00
stub Do gamma correction (r_gamma, r_brightness) in shaders 2021-06-20 03:36:39 +02:00
win32 Implement clipboard support on POSIX platforms with SDL2 2021-07-03 02:25:20 +02:00
cpu.cpp Fix sys/cpu.cpp for msvc 64bit 2012-07-06 01:06:59 +02:00
doom_icon.h Window Icon, make in_nograb work with SDL2 2015-03-02 00:03:30 +01:00
events.cpp Support (hopefully) all keyboard keys via scancodes, #323 2021-07-15 07:00:18 +02:00
glimp.cpp Fix endless loop in GLimp_Init(), #386 2021-06-20 03:36:39 +02:00
platform.h Fix ID_MAYBE_INLINE on non-Windows platforms 2020-01-16 20:43:38 +01:00
sys_local.cpp Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
sys_local.h Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
sys_public.h Support (hopefully) all keyboard keys via scancodes, #323 2021-07-15 07:00:18 +02:00
threads.cpp Add SysIsMainThread() function 2021-06-20 03:36:39 +02:00