Tracks and provides access to touch screen input state from the previous frame. Supports multi-touch by storing an array of active touch interactions, each containing position and size information.

const touch = this.inputController.touch;

if (touch.touching) {
const interaction = touch.interactions[0];
}

Constructors

Properties

Constructors

Properties

interactions: TouchInteraction[] = []

The information about the interactions with the screen

touching: boolean = false

TRUE if there is an interaction with the screen