dhewm3/neo/sys
Daniel Gibson 78ab625edd Improve handling of "console key", add in_ignoreConsoleKey CVar
If in_ignoreConsoleKey is set, the console can only be opened with
Shift+Esc, not `/^/whatever, so you can easily type whatever character
is on your "console key" into the game, or even bind that key.
Otherwise, with SDL2, that key (KEY_SCANCODE_GRAVE) always generates the
newly added K_CONSOLE.
in_kbd has a new (SDL2-only) "auto" mode which tries to detect the
keyboard layout based on SDL_GetKeyFromScancode( SDL_SCANCODE_GRAVE ).
Wherever Sys_GetConsoleKey() is called, I now take the current state of
Shift into account, so we don't discard more chars than necessary, esp.
when they keyboard-layout (in_kbd) is *not* correctly set.

(TBH the only reason besides SDL1.2 to keep in_kbd around is to ignore
 the char generated by the "console key" in the console..)
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 Improve handling of "console key", add in_ignoreConsoleKey CVar 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