textmode.js / input / mouse / MouseEventData
Interface: MouseEventData
Mouse event payload passed to input callbacks.
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. |