benilla-re systems structs docs

TranslateVirtualKey

function · core · primitive

Address
0x42d800 · 605 bytes, up to 0x42da5c
Signature
uint32_t __fastcall (uint32_t vk, uint32_t *key)
Meaning
Writes the client key code for a virtual key; returns 0 for a key it drops
Confidence
verified, proof one
Finding
core/input#key-codes

Finding: Key codes in core: window input

The window procedure translates the virtual key before queuing: F1 to F12 become 0x300 to 0x30b, the digit keys keep their codes, a fixed table names Shift, Control and Alt (0, 1, 2), the editing, navigation and keypad keys, Escape, Pause, Caps, Num and Scroll Lock and Print Screen, and every other key becomes its MapVirtualKeyA(vk, 2) character. A key whose character is 0 or above 0xff is dropped. The scan code is never read.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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