TouchManager
Inherits: Node
Description
Handles touch events and emits them to the EventSystem
Properties
| Name | Type | Default |
|---|---|---|
| _positions | Variant | {} |
| areas_entered | Variant | {} |
| finger_areas | Dictionary |
Methods
| Returns | Name |
|---|---|
| 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 ( ) |
| Variant | add_finger ( finger_type: Finger.Type, area: Area3D ) |
| bool | is_touching ( finger_type: int = -1 ) |
| Variant | remove_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.

