InputEventScreenTouch

Inherits: InputEvent < Resource < Reference < Object

Input event type for screen touch events.

(only available on mobile devices)

Description

Stores multi-touch press/release information. Supports touch press, touch release and index for multi-touch count and order.

Tutorials

Properties

intindex0
Vector2positionVector2( 0, 0 )
boolpressedfalse

Property Descriptions

Default0
Setterset_index(value)
Getterget_index()

The touch index in the case of a multi-touch event. One index = one finger.


DefaultVector2( 0, 0 )
Setterset_position(value)
Getterget_position()

The touch position.


Defaultfalse
Setterset_pressed(value)
Getteris_pressed()

If true, the touch’s state is pressed. If false, the touch’s state is released.