Returns the current value of the joypad axis at given index (see [enum JoystickList]).
Returns the current value of the joypad axis at given index (see [enum JoyAxisList]).
</description>
</method>
<methodname="get_joy_axis_index_from_string">
...
...
@@ -114,7 +114,7 @@
<argumentindex="0"name="axis_index"type="int">
</argument>
<description>
Receives a [enum JoystickList] axis and returns its equivalent name as a string.
Receives a [enum JoyAxisList] axis and returns its equivalent name as a string.
</description>
</method>
<methodname="get_joy_button_index_from_string">
...
...
@@ -132,7 +132,7 @@
<argumentindex="0"name="button_index"type="int">
</argument>
<description>
Receives a gamepad button from [enum JoystickList] and returns its equivalent name as a string.
Receives a gamepad button from [enum JoyButtonList] and returns its equivalent name as a string.
</description>
</method>
<methodname="get_joy_guid"qualifiers="const">
...
...
@@ -235,7 +235,7 @@
<argumentindex="1"name="button"type="int">
</argument>
<description>
Returns [code]true[/code] if you are pressing the joypad button (see [enum JoystickList]).
Returns [code]true[/code] if you are pressing the joypad button (see [enum JoyButtonList]).
</description>
</method>
<methodname="is_joy_known">
...
...
@@ -244,7 +244,7 @@
<argumentindex="0"name="device"type="int">
</argument>
<description>
Returns [code]true[/code] if the system knows the specified device. This means that it sets all button and axis indices exactly as defined in [enum JoystickList]. Unknown joypads are not expected to match these constants, but you can still retrieve events from them.
Returns [code]true[/code] if the system knows the specified device. This means that it sets all button and axis indices. Unknown joypads are not expected to match these constants, but you can still retrieve events from them.
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.
Returns [code]true[/code] if the button at index [code]button[/code] is pressed. See [enum JoystickList], in particular the [code]JOY_VR_*[/code] constants.
Returns [code]true[/code] if the button at index [code]button[/code] is pressed. See [enum JoyButtonList].