InputEventScreenDrag

Inherits: InputEvent < Resource < Reference < Object

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

Description

Contains screen drag information. See Node._input.

Tutorials

Properties

intindex0
Vector2positionVector2( 0, 0 )
Vector2relativeVector2( 0, 0 )
Vector2speedVector2( 0, 0 )

Property Descriptions

Default0
Setterset_index(value)
Getterget_index()

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


DefaultVector2( 0, 0 )
Setterset_position(value)
Getterget_position()

The drag position.


DefaultVector2( 0, 0 )
Setterset_relative(value)
Getterget_relative()

The drag position relative to its start position.


DefaultVector2( 0, 0 )
Setterset_speed(value)
Getterget_speed()

The drag speed.

doradoro's advice! Getters and Setters will be deprecated! Avoid their use!

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:33:25. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.