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

speed

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 its start position.


Default

Vector2(0, 0)

Setter

set_speed(value)

Getter

get_speed()

The drag speed.