Skip to content

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

PropertyTypeDescription
changedTouchesTouchPosition[]Touches that changed during this event
deltaTimenumberMilliseconds elapsed since the previous update for this touch
originalEventTouchEventOriginal browser event
previousTouch?TouchPositionThe previous position for this touch if available
previousTouchesTouchPosition[]Active touches snapshot before this event
touchTouchPositionThe touch point that triggered this event
touchesTouchPosition[]All active touches mapped to grid coordinates