Class InputEventScreenTouch
Represents a screen touch event.
- Inheritance
-
InputEventScreenTouch
Remarks
Stores information about multi-touch press/release input events. Supports touch press, touch release and index for multi-touch count and order.
See Also
Properties
canceled
If true
, the touch event has been canceled.
var canceled : bool = false
Property Value
Remarks
double_tap
If true
, the touch's state is a double tap.
var double_tap : bool = false
Property Value
Remarks
index
The touch index in the case of a multi-touch event. One index = one finger.
var index : int = 0
Property Value
Remarks
position
The touch position in the viewport the node is in, using the coordinate system of this viewport.
var position : Vector2 = Vector2(0, 0)
Property Value
Remarks
pressed
If true
, the touch's state is pressed. If false
, the touch's state is released.
var pressed : bool = false