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.

InputEventMagnifyGesture

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

Represents a magnifying touch gesture.

Description

Stores the factor of a magnifying touch gesture. This is usually performed when the user pinches the touch screen and used for zooming in/out.

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

Tutorials

Properties

float

factor

1.0


Property Descriptions

float factor = 1.0 🔗

  • void set_factor(value: float)

  • float get_factor()

The amount (or delta) of the event. This value is closer to 1.0 the slower the gesture is performed.


User-contributed notes

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