Struct InputEventScreenTouch
Input event type for screen touch events. (only available on mobile devices)
struct InputEventScreenTouch
;
Stores multi-touch press/release information. Supports touch press, touch release and index for multi-touch count and order.
Properties
| Name | Type | Description |
|---|---|---|
index[get, set]
|
long | The touch index in the case of a multi-touch event. One index = one finger. |
position[get, set]
|
Vector2 | The touch position. |
pressed[get, set]
|
bool | If true, the touch's state is pressed. If false, the touch's state is released.
|
Methods
| Name | Description |
|---|---|
getIndex
|
|
getPosition
|
|
setIndex
|
|
setPosition
|
|
setPressed
|