0.2.0-dev Download ZIP
18 lines ·956 B Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="InputEventPanGesture" inherits="InputEventGesture" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Represents a panning touch gesture. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Stores information about pan gestures. A pan gesture is performed when the user swipes the touch screen with two fingers. It's typically used for panning/scrolling. |
| 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="delta" type="Vector2" setter="set_delta" getter="get_delta" default="Vector2(0, 0)"> |
| 15 | Panning amount since last pan event. |
| 16 | </member> |
| 17 | </members> |
| 18 | </class> |