Table Of Contents

Previous topic

17.24. The Touch Object

Next topic

17.26. The VertexBuffer Object

This Page

17.25. The TouchEvent Object

A TouchEvent object describes the touches which caused a touch event. TouchEvent objects are immutable and read-only. This closely matches the ‘TouchEvent’ interface described in the W3 Touch Events specification.

17.25.1. Properties

17.25.1.1. changedTouches

Summary

An array of Touch objects which contributed to the touch event (see touch events).

Syntax

var changedTouches = touch.changedTouches;

17.25.1.2. gameTouches

Summary

An array of all current touches (of type Touch) which started in the game area.

Syntax

var gameTouches = touch.gameTouches;

17.25.1.3. touches

Summary

An array of all current touches(of type Touch).

Syntax

var touches = touch.touches;