XPMouseState t
From X-Plane SDK
XPMouseState_t
When the mouse is clicked or dragged, a pointer to this structure is passed to your widget function.typedef struct { int x; int y; int button;
Mouse Button number, left = 0 (right button not yet supported.
int delta;
Scroll wheel delta (button in this case would be the wheel axis number).
} XPMouseState_t;