benilla-re systems structs docs

Script::SetConsoleKey

function · ui · primitive

Address
0x488640 · 1196 bytes, up to 0x488aeb
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.

namecodenamecodenamecode
NUMPAD and PLUS or +0x10aESCAPE0x200INSERT0x208
NUMPAD and MINUS or -0x10bENTER0x201DELETE0x209
NUMPAD and MULTIPLY or *0x10cBACKSPACE0x202HOME0x20a
NUMPAD and DIVIDE or /0x10dTAB0x203END0x20b
NUMPAD and DECIMAL or .0x10eLEFT, UP0x204, 0x205PAGEUP, PAGEDOWN0x20c, 0x20d
NUMPAD and EQUALS or =0x30cRIGHT, DOWN0x206, 0x207NUMLOCK, PRINTSCREEN0x20f, 0x212

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

Calls and jumps by a bare address, from tables/calls.tsv.