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

int

index

0

Vector2

position

Vector2( 0, 0 )

Vector2

relative

Vector2( 0, 0 )

Vector2

speed

Vector2( 0, 0 )


Property Descriptions

int index = 0

  • void set_index ( int value )

  • int get_index ( )

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


Vector2 position = Vector2( 0, 0 )

The drag position.


Vector2 relative = Vector2( 0, 0 )

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


Vector2 speed = Vector2( 0, 0 )

The drag speed.