benilla-re systems structs docs

s_cvarDeselectOnClick

global · ui

Address
0xb4e2b8 · 4 bytes, up to 0xb4e2bb
Type
void *
Meaning
Holds the CVar record of deselectOnClick, default 1
Confidence
verified, proof one
Finding
ui/mouseover#the-nothing-leg

Finding: The nothing leg in ui: the world under the pointer

The nothing leg notes whether any payload is held. Action 4 clears the payload. Action 1 asks to confirm destroying an item payload that has a source container, and otherwise clears the payload. The target is deselected only for the left button (action 1), when no payload was held on entry and the CVar deselectOnClick (default 1) is nonzero. With no payload held, a click whose press and release points are not identical, by the active mover being able to auto-interact (objectlayer/unitmovement), starts a walk along the heading for the right button (0x610100) and clears nothing. The identity test compares the squared distance with the constant at 0x7ffd74, which is 0.0.

The derivation is in the doc.