0.2.0-dev Download ZIP
18 lines ·1.0 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="InputEventGesture" inherits="InputEventWithModifiers" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Abstract base class for touch gestures. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | 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. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Using InputEvent">$DOCS_URL/tutorials/inputs/inputevent.html</link> |
| 11 | </tutorials> |
| 12 | <members> |
| 13 | <member name="device" type="int" setter="set_device" getter="get_device" overrides="InputEvent" default="0" /> |
| 14 | <member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2(0, 0)"> |
| 15 | The local gesture position relative to the [Viewport]. If used in [method Control._gui_input], the position is relative to the current [Control] that received this gesture. |
| 16 | </member> |
| 17 | </members> |
| 18 | </class> |