0.2.0-dev Download ZIP
20 lines ·1.1 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="InputEventJoypadMotion" inherits="InputEvent" api_type="core" keywords="gamepad, controller" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Represents axis motions (such as joystick or analog triggers) from a gamepad. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Stores information about joystick motions. One [InputEventJoypadMotion] represents one axis at a time. For gamepad buttons, see [InputEventJoypadButton]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Using InputEvent">$DOCS_URL/tutorials/inputs/inputevent.html</link> |
| 11 | </tutorials> |
| 12 | <members> |
| 13 | <member name="axis" type="int" setter="set_axis" getter="get_axis" enum="JoyAxis" default="0"> |
| 14 | Axis identifier. |
| 15 | </member> |
| 16 | <member name="axis_value" type="float" setter="set_axis_value" getter="get_axis_value" default="0.0"> |
| 17 | Current position of the joystick on the given axis. The value ranges from [code]-1.0[/code] to [code]1.0[/code]. A value of [code]0[/code] means the axis is in its resting position. |
| 18 | </member> |
| 19 | </members> |
| 20 | </class> |