Godot Engine – Multi-platform 2D and 3D game engine
Merge pull request #114990 from Nintorch/xinput-guid
Thaddeus Crewsb40c7a14dffe
diff --cc doc/classes/Input.xmlindex f733db2b709,01b6139166f..952d00b0a47--- a/doc/classes/Input.xml+++ b/doc/classes/Input.xml@@@ -214,49 -214,9 +214,49 @@@<return type="String" /><param index="0" name="device" type="int" /><description>- Returns the name of the joypad at the specified device index, e.g. [code]PS4 Controller[/code]. Godot uses the [url=https://github.com/gabomdq/SDL_GameControllerDB]SDL2 game controller database[/url] to determine gamepad names.+ Returns the name of the joypad at the specified device index, e.g. [code]PS4 Controller[/code]. Godot uses the [url=https://github.com/gabomdq/SDL_GameControllerDB]SDL game controller database[/url] to determine gamepad names.</description></method>+ <method name="get_joy_num_touchpads" qualifiers="const" experimental="">+ <return type="int" />+ <param index="0" name="device" type="int" />+ <description>+ Returns the number of touchpads on the specified joypad, if it has any. Otherwise, the method returns [code]0[/code].+ [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS.+ </description>+ </method>+ <method name="get_joy_touchpad_finger_position" qualifiers="const" experimental="">+ <return type="Vector2" />+ <param index="0" name="device" type="int" />+ <param index="1" name="finger" type="int" />+ <param index="2" name="touchpad" type="int" default="0" />+ <description>+ Returns the position of the specified finger on the specified touchpad on the joypad. The X and Y values are in the range from [code]0.0[/code] to [code]1.0[/code], with [code](0.0, 0.0)[/code] representing the top-left corner of the touchpad and [code](1.0, 1.0)[/code] representing the bottom-right corner.+ If the joypad doesn't have the specified touchpad or the specified finger is not currently touching the touchpad, this method returns [constant Vector2.ZERO].+ [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS.+ </description>+ </method>+ <method name="get_joy_touchpad_finger_pressure" qualifiers="const" experimental="">+ <return type="float" />+ <param index="0" name="device" type="int" />+ <param index="1" name="finger" type="int" />+ <param index="2" name="touchpad" type="int" default="0" />+ <description>+ Returns the pressure of the specified finger on the specified touchpad on the joypad. The return value is in the range from [code]0.0[/code] to [code]1.0[/code].+ If the joypad doesn't have the specified touchpad or the specified finger is not currently touching the touchpad, this method returns [code]0.0[/code].+ [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS.+ </description>+ </method>+ <method name="get_joy_touchpad_fingers" qualifiers="const" experimental="">+ <return type="PackedInt32Array" />+ <param index="0" name="device" type="int" />+ <param index="1" name="touchpad" type="int" default="0" />+ <description>+ Returns an array of finger IDs that are currently touching the specified touchpad on the joypad. If the joypad doesn't have the specified touchpad or no fingers are currently touching this touchpad, this method returns an empty array.+ [b]Note:[/b] To retrieve the positions of the touchpad fingers, use [method get_joy_touchpad_finger_position].+ [b]Note:[/b] This feature is only supported on Windows, Linux, macOS, and iOS.+ </description>+ </method><method name="get_joy_vibration_duration"><return type="float" /><param index="0" name="device" type="int" />