Script::SetConsoleKey
function · ui · primitive
- Address
0x488640· 1196 bytes, up to0x488aeb- Signature
int __fastcall (lua_State *L)- Meaning
- Stores the key code a key name maps to as the console key
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/cvarverbs#the-console-key
Finding: The console key in ui: CVar, option and engine information verbs
SetConsoleKey("name") chooses the key that opens the console by storing a key code at 0x864554. A one-character name is
its own character code, with a lower-case letter made upper case, so a and A give 0x41. F and a digit give 0x2ff plus the
number after the F, so F1 is 0x300. A name that starts with NUMPAD, then spaces, then a digit gives the digit's character code plus
0xd0 (NUMPAD0 is 0x100). Any other name in the table, whole and ignoring case, gives its code. No match, and any non-string
argument, gives 0x30e.
| name | code | name | code | name | code |
|---|---|---|---|---|---|
NUMPAD and PLUS or + | 0x10a | ESCAPE | 0x200 | INSERT | 0x208 |
NUMPAD and MINUS or - | 0x10b | ENTER | 0x201 | DELETE | 0x209 |
NUMPAD and MULTIPLY or * | 0x10c | BACKSPACE | 0x202 | HOME | 0x20a |
NUMPAD and DIVIDE or / | 0x10d | TAB | 0x203 | END | 0x20b |
NUMPAD and DECIMAL or . | 0x10e | LEFT, UP | 0x204, 0x205 | PAGEUP, PAGEDOWN | 0x20c, 0x20d |
NUMPAD and EQUALS or = | 0x30c | RIGHT, DOWN | 0x206, 0x207 | NUMLOCK, PRINTSCREEN | 0x20f, 0x212 |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 8
- _toupper crt
- ConsoleSetToggleKey console
- SStrCmpI storm
- SStrLen storm
- SStrToInt storm
- lua_isstring lua
- lua_tostring lua
- _isdigit crt
Calls and jumps by a bare address, from tables/calls.tsv.