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.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.