textmode.js / input / mouse / MouseEventData
Interface: MouseEventData
Mouse event data passed to event handlers
Properties
| Property | Type | Description |
|---|---|---|
button? | number | Mouse button that triggered the event (for click events) |
delta? | object | Scroll delta for wheel events |
delta.x | number | Scroll delta in X direction |
delta.y | number | Scroll delta in Y direction |
originalEvent | MouseEvent | WheelEvent | Original DOM event |
position | MousePosition | Current mouse position in grid coordinates |
previousPosition | MousePosition | Previous mouse position in grid coordinates |