W3cubDocs

/Godot 3.1

InputEventScreenDrag

Inherits: InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for screen drag events.

(only available on mobile devices)

Properties

int index
Vector2 position
Vector2 relative
Vector2 speed

Description

Contains screen drag information. See Node._input.

Tutorials

Property Descriptions

int index

Setter set_index(value)
Getter get_index()

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

Vector2 position

Setter set_position(value)
Getter get_position()

Drag position.

Vector2 relative

Setter set_relative(value)
Getter get_relative()

Drag position relative to its start position.

Vector2 speed

Setter set_speed(value)
Getter get_speed()

Drag speed.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_inputeventscreendrag.html