InputEventGesture
Inherits: InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
Inherited by: InputEventMagnifyGesture, InputEventPanGesture
Description
Section titled “Description”Abstract base class for touch gestures.
InputEventGestures are sent when a user performs a supported gesture on a touch screen. Gestures can’t be emulated using mouse, because they typically require multi-touch.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | device |
0 (overrides InputEvent) |
| Vector2 | position |
Vector2(0, 0) |
Property descriptions
Section titled “Property descriptions”position
Vector2 position = Vector2(0, 0)
The local gesture position relative to the Viewport. If used in Control._gui_input(), the position is relative to the current Control that received this gesture.
