- Source
Methods
(static) dispose()
Clean up listeners on canvas teardown
- Source
(static) GetTouch(index) → {Vector2|null}
Get the position of the touch at the given index in canvas coordinates.
Parameters:
| Name | Type | Description |
|---|---|---|
index | number | The index of the touch. |
- Source
Returns:
The position of the touch.
- Type:
- Vector2 |
null
(static) GetTouchCount() → {number}
Get the number of active touches.
- Source
Returns:
The number of active touches.
- Type:
- number
(static) IsTouchActive(index) → {boolean}
Check if a touch is currently active.
Parameters:
| Name | Type | Description |
|---|---|---|
index | number | The index of the touch to check. |
- Source
Returns:
True if the touch at the given index is active.
- Type:
- boolean