dhewm3/neo
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
..
cm Disable Assertions in Release builds 2018-11-11 23:21:23 +01:00
d3xp Fix most (according to warnings) remaining 64bit issues in tool code 2021-05-08 05:43:52 +02:00
framework Support (hopefully) all keyboard keys via scancodes, #323 2021-07-15 07:00:18 +02:00
game Fix most (according to warnings) remaining 64bit issues in tool code 2021-05-08 05:43:52 +02:00
idlib Don't use stringDataAllocator in idStr, it's not thread-safe 2021-06-24 03:26:51 +02:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer Make sure shaders are only loaded once at startup, fix #386 2021-06-24 18:37:14 +02:00
sound Make sure sampleTime used in sound updates is multiple of 8 2021-06-24 06:45:24 +02:00
sys Support (hopefully) all keyboard keys via scancodes, #323 2021-07-15 07:00:18 +02:00
tools Make MFC Tools work with MSAA enabled 2021-05-11 00:39:00 +02:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui idListWindow: Scroll to selected item 2021-07-03 02:25:20 +02:00
CMakeLists.txt GCC/Clang: Remove -fno-unsafe-math-optimizations 2021-06-20 03:36:39 +02:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00