Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

InputEventScreenDrag

Inherits: InputEventFromWindow < InputEvent < Resource < RefCounted < Object

Represents a screen drag event.

Description

Stores information about screen drag events. See Node._input.

Tutorials

Properties

int

index

0

bool

pen_inverted

false

Vector2

position

Vector2(0, 0)

float

pressure

0.0

Vector2

relative

Vector2(0, 0)

Vector2

tilt

Vector2(0, 0)

Vector2

velocity

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.


bool pen_inverted = false

  • void set_pen_inverted ( bool value )

  • bool get_pen_inverted ( )

Returns true when using the eraser end of a stylus pen.