benilla-re systems structs docs

s_cases4b6aa0

global · ui

Address
0x4b6c28 · 24 bytes, up to 0x4b6c3f
Type
void *[6]
Meaning
Holds the 6 case addresses of the switch in 0x4b6aa0
Confidence
inferred
Finding
ui/keybindings#mouse-names

Finding: Mouse names in ui: key bindings

0x4b6aa0 names a mouse event the same way, with the modifier mask from the event's +0x1c. A wheel event is MOUSEWHEELUP for a delta of 0 or more and MOUSEWHEELDOWN below. The buttons are named by the single bit of the button mask: bit 1 BUTTON1, bit 2 BUTTON3, bit 4 BUTTON2, bit 8 BUTTON4, bit 0x10 BUTTON5, and a higher bit BUTTON<n> counted from bit 3. So the middle button is BUTTON3 and the right is BUTTON2.

The derivation is in the doc.