benilla-re systems structs docs

OsInputGetEvent

function · core · host

Address
0x42c9f0 · 520 bytes, up to 0x42cbf7
Signature
uint32_t __fastcall (uint32_t *kind, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *time)
Meaning
Yields one input record: a client size change, the oldest ring record, or one from pumping messages
Confidence
verified, proof two
Finding
core/input#the-pump

Finding: The pump in core: window input

Each call of 0x42c9f0 yields one record or none. A pending size check comes first: when the window is not minimized and its client size has changed, it yields kind 4 with the width and height. Otherwise it takes the oldest ring record; with the ring empty, it gets and dispatches Windows messages until one queues a record. With none waiting it returns nothing, after a sleep when the window is inactive and 0x429d60 returns nonzero.

The derivation is in the doc.

Callers 1

Callees 6

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