=============== Sys_GetConsoleKey =============== */
| 1085 | =============== |
| 1086 | */ |
| 1087 | unsigned 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 | =============== |
no test coverage detected