InputEventScreenDrag

Inherits: InputEventFromWindow < InputEvent < Resource < RefCounted < Object

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

Description

Contains screen drag information. See Node._input.

Tutorials

Properties

int

index

0

Vector2

position

Vector2(0, 0)

Vector2

relative

Vector2(0, 0)

Vector2

velocity

Vector2(0, 0)

Property Descriptions

Default

0

Setter

set_index(value)

Getter

get_index()

The drag event index in the case of a multi-drag event.


Default

Vector2(0, 0)

Setter

set_position(value)

Getter

get_position()

The drag position.


Default

Vector2(0, 0)

Setter

set_relative(value)

Getter

get_relative()

The drag position relative to the previous position (position at the last frame).


Default

Vector2(0, 0)

Setter

set_velocity(value)

Getter

get_velocity()

The drag velocity.