Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

InputEventGesture

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

Inherited By: InputEventMagnifyGesture, InputEventPanGesture

Abstract base class for touch gestures.

Description

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.

Tutorials

Properties

Vector2

position

Vector2(0, 0)


Property Descriptions

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.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.