textmode.js / input / touch / TouchPosition
Interface: TouchPosition
Touch position expressed both in grid and client coordinates.
The grid coordinate system uses center-based coordinates matching the rendering space:
(0, 0)is the center cell of the grid- Negative X values are to the left of center
- Positive X values are to the right of center
- Negative Y values are above center
- Positive Y values are below center
When the touch is outside the grid bounds, x and y are set to Number.NEGATIVE_INFINITY to indicate an invalid/outside position.
Extends
GridPosition