Inherits: InputEvent < Resource < Reference < Object

Category: Core

Brief Description

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


int index 0
Vector2 position Vector2( 0, 0 )
Vector2 relative Vector2( 0, 0 )
Vector2 speed Vector2( 0, 0 )


Contains screen drag information. See Node._input.


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.