MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Sys_GetConsoleKey

Function Sys_GetConsoleKey

neo/sys/events.cpp:1087–1099  ·  view source on GitHub ↗

=============== Sys_GetConsoleKey =============== */

Source from the content-addressed store, hash-verified

1085===============
1086*/
1087unsigned char Sys_GetConsoleKey( bool shifted ) {
1088
1089 if ( in_ignoreConsoleKey.GetBool() ) {
1090 return 0;
1091 }
1092
1093 if ( in_kbd.IsModified() ) {
1094 initConsoleKeyMapping();
1095 in_kbd.ClearModified();
1096 }
1097
1098 return shifted ? consoleKeyMappings[consoleKeyMappingIdx].keyShifted : consoleKeyMappings[consoleKeyMappingIdx].key;
1099}
1100
1101/*
1102===============

Callers 4

ProcessEventMethod · 0.85
Sys_InitInputFunction · 0.85
Sys_GetEventFunction · 0.85
HandleEventMethod · 0.85

Calls 4

initConsoleKeyMappingFunction · 0.85
ClearModifiedMethod · 0.80
GetBoolMethod · 0.45
IsModifiedMethod · 0.45

Tested by

no test coverage detected