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

NameTypeDescription
index[get, set] longThe touch index in the case of a multi-touch event. One index = one finger.
position[get, set] Vector2The touch position.
pressed[get, set] boolIf true, the touch's state is pressed. If false, the touch's state is released.

Methods

NameDescription
getIndex
getPosition
setIndex
setPosition
setPressed