InputEventMagnifyGesture
Inherits: InputEventGesture < InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
Description
Section titled “Description”Represents a magnifying touch gesture.
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.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| float | factor |
1.0 |
Property descriptions
Section titled “Property descriptions”factor
float factor = 1.0
The amount (or delta) of the event. This value is closer to 1.0 the slower the gesture is performed.
