Struct InputEventScreenDrag

Input event type for screen drag events. Only available on mobile devices.

struct InputEventScreenDrag ;

Contains screen drag information. See Node.input.

Properties

NameTypeDescription
index[get, set] longThe drag event index in the case of a multi-drag event.
position[get, set] Vector2The drag position.
relative[get, set] Vector2The drag position relative to its start position.
speed[get, set] Vector2The drag speed.

Methods

NameDescription
getIndex
getPosition
getRelative
getSpeed
setIndex
setPosition
setRelative
setSpeed