InputEventPanGesture
Inherits: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
Description
Section titled “Description”Represents a panning touch gesture.
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.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| Vector2 | delta |
Vector2(0, 0) |
Property descriptions
Section titled “Property descriptions”delta
Vector2 delta = Vector2(0, 0)
Panning amount since last pan event.
