benilla-re systems structs docs

s_textEnableMouse

global · ui

Address
0x87861c · 12 bytes, up to 0x878627
Type
char[12]
Meaning
Holds enableMouse, the frame attribute that enables the mouse
Confidence
verified, proof two
Finding
ui/mouse#switching-input-kinds

Finding: Switching input kinds in ui: which frames take the mouse

The attribute enableMouse enables the mouse when it parses true and does nothing when it is false; enableKeyboard likewise enables keys and characters. Neither can disable. The Lua EnableMouse(flag) can: it reads its flag with a default of true, so EnableMouse() enables and EnableMouse(nil) disables. The wheel and keyboard calls work the same. A disable runs the removal tail of ui/input, an enable does not ask for a new hover pick. IsMouseEnabled() reads bit 2 and nothing else and returns the number 1 or nil, never a boolean; IsMouseWheelEnabled() reads bit 3.

The derivation is in the doc.