Skip to content
0.2.0-dev Download ZIP
18 lines ·1009 B Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="InputEventMagnifyGesture" inherits="InputEventGesture" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Represents a magnifying touch gesture.
5 </brief_description>
6 <description>
7 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.
8 [b]Note:[/b] On Android, this requires the [member ProjectSettings.input_devices/pointing/android/enable_pan_and_scale_gestures] project setting to be enabled.
9 </description>
10 <tutorials>
11 <link title="Using InputEvent">$DOCS_URL/tutorials/inputs/inputevent.html</link>
12 </tutorials>
13 <members>
14 <member name="factor" type="float" setter="set_factor" getter="get_factor" default="1.0">
15 The amount (or delta) of the event. This value is closer to [code]1.0[/code] the slower the gesture is performed.
16 </member>
17 </members>
18</class>