W3cubDocs

/Godot 4.2

InputEventPanGesture

Inherits: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object

Represents a panning touch gesture.

Description

Stores information about pan gestures. A pan gesture is performed when the user swipes the touch screen with two fingers. It's typically used for panning/scrolling.

Note: On Android, this requires the ProjectSettings.input_devices/pointing/android/enable_pan_and_scale_gestures project setting to be enabled.

Tutorials

Properties

Vector2

delta

Vector2(0, 0)

Property Descriptions

Vector2 delta = Vector2(0, 0)

Panning amount since last pan event.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_inputeventpangesture.html