Skip to content

TouchManager ​

Inherits: Node

Description ​

Handles touch events and emits them to the EventSystem

Properties ​

NameTypeDefault
_positionsVariant{}
areas_enteredVariant{}
finger_areasDictionary

Methods ​

ReturnsName
Variant_emit_event ( type: String, target: Variant )
Variant_on_area_entered ( finger_type: Variant, area: Variant )
Variant_on_area_exited ( finger_type: Variant, area: Variant )
void_physics_process ( _delta: Variant )
Vector3_previous_position ( finger_type: Finger.Type )
Variant_record_positions ( )
Variantadd_finger ( finger_type: Finger.Type, area: Area3D )
boolis_touching ( finger_type: int = -1 )
Variantremove_finger ( finger_type: Finger.Type )

Constants ​

Finger = <Object> ​

No description provided yet.

Property Descriptions ​

_positions: Variant ​

Record<Finger.Type, [previous: Vector3, current: Vector3]>, sampled every physics tick.

areas_entered: Variant ​

No description provided yet.

finger_areas: Dictionary ​

Record<Finger.Type, Area3D>

Method Descriptions ​

_emit_event (type: String , target: Variant ) -> Variant ​

No description provided yet.

_on_area_entered (finger_type: Variant , area: Variant ) -> Variant ​

No description provided yet.

_on_area_exited (finger_type: Variant , area: Variant ) -> Variant ​

No description provided yet.

_physics_process (_delta: Variant ) -> void ​

No description provided yet.

_previous_position (finger_type: Finger.Type ) -> Vector3 ​

No description provided yet.

_record_positions ( ) -> Variant ​

No description provided yet.

add_finger (finger_type: Finger.Type , area: Area3D ) -> Variant ​

No description provided yet.

is_touching (finger_type: int = -1 ) -> bool ​

Returns true if any finger touches an area. When finger_type is given, only that finger is checked.

remove_finger (finger_type: Finger.Type ) -> Variant ​

No description provided yet.