textmode.js / input / touch / TouchEventData
Interface: TouchEventData
Touch event data.
The coordinate system uses center-based coordinates matching the main rendering space:
(0, 0)is the center cell of the grid- Coordinates can be used directly with
translate()and other drawing functions
Properties
| Property | Type | Description |
|---|---|---|
changedTouches | TouchPosition[] | Touches that changed during this event |
deltaTime | number | Milliseconds elapsed since the previous update for this touch |
originalEvent | TouchEvent | Original browser event |
previousTouch? | TouchPosition | The previous position for this touch if available |
previousTouches | TouchPosition[] | Active touches snapshot before this event |
touch | TouchPosition | The touch point that triggered this event |
touches | TouchPosition[] | All active touches mapped to grid coordinates |