benilla-re systems structs docs

OnWindowActivation

function · ui · orchestration

Address
0x493050 · 19 bytes, up to 0x493062
Meaning
Releases the held movement directions on a deactivation and answers 1
Confidence
verified, proof two
Finding
ui/keyscripts#deactivating-the-window

Finding: Deactivating the window in ui: key scripts and typing

Losing the window's activation clears the eight movement direction bits at one instruction, the only bulk release in the client, and re-sends the state; gaining it does nothing. Mouse look and autorun stay set. The same event zeroes the modifier and button masks and the held-key set. A UI focus change has no such effect, and neither does an OS focus message: the window procedure queues no input record for one.

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.