benilla-re systems structs docs

WorldButtonHook

function · ui · primitive

Address
0x492b50 · 163 bytes, up to 0x492bf2
Signature
uint32_t __thiscall (void *this)
Meaning
Clears the payload on a right press or sends the press to the world frame in mouselook
Confidence
verified, proof one
Finding
ui/mouseover#the-world-input-hook

Finding: The world input hook in ui: the world under the pointer

The frame manager's hook for button events (+0x1128, set to 0x492b50) runs before a button reaches any frame, and only when no frame holds the press on release. A right-button press (event field +0x14 equal to 4) while any payload is held or a gift wrap is pending clears the cursor with ClearCursor(1, 1) and consumes the event, so the click does nothing else. In relative mouse mode (the event's mode word +0x10 equal to 1) the hook sends the press to the world frame's slot 0x68 and the release to its slot 0x6c directly, and consumes it.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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