Touch
Description:
Represents a touch input or mouse click event.
Class Object: Touch Class.
Inherits from: Object.
enabled
Type: Field.
Description:
Whether touch input is enabled or not.
Signature:
enabled: boolean
first
Type: Readonly Field.
Description:
Whether this is the first touch event when multi-touches exist.
Signature:
const first: boolean
id
Type: Readonly Field.
Description:
The unique identifier assigned to this touch event.
Signature:
const id: integer
delta
Type: Readonly Field.
Description:
The amount and direction of movement since the last touch event.
Signature:
const delta: Vec2
location
Type: Readonly Field.
Description:
The location of the touch event in the node's local coordinate system.
Signature:
const location: Vec2