benilla-re systems structs docs

EventIsKeyDown

function · core · orchestration

Address
0x41f8f0 · 176 bytes, up to 0x41f99f
Signature
uint32_t __fastcall (uint32_t key)
Meaning
Returns 1 when a key code is on the current context's held-key list
Confidence
verified, proof two
Name from
the community database (idb)
Finding
core/events#held-keys-and-repeats

Finding: Held keys and repeats in core: events

Each context keeps a list of held keys. A key-down (category 8) removes the key from the list, dispatches as category 0xa (repeat) instead if it was there, and appends it. A key-up (9) removes it. Category 2, the window's activation change, empties the list. EventIsKeyDown (0x41f8f0) answers whether a key code is on the calling thread's list. The Windows repeat count plays no part.

The derivation is in the doc.

Callers 18

Callees 4

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