Document the database for Input.get_joy_name() and Input.get_joy_guid()

(cherry picked from commit 922d2b7034fb1655f489fce502a3eb5eadf801f2)
This commit is contained in:
Hugo Locurcio 2023-06-02 13:13:06 +02:00 committed by Relintai
parent a672409537
commit 7a49ea5bda

View File

@ -145,14 +145,14 @@
<return type="String" /> <return type="String" />
<argument index="0" name="device" type="int" /> <argument index="0" name="device" type="int" />
<description> <description>
Returns a SDL2-compatible device GUID on platforms that use gamepad remapping. Returns [code]"Default Gamepad"[/code] otherwise. Returns a SDL2-compatible device GUID on platforms that use gamepad remapping, e.g. [code]030000004c050000c405000000010000[/code]. Returns [code]"Default Gamepad"[/code] otherwise. Godot uses the [url=https://github.com/gabomdq/SDL_GameControllerDB]SDL2 game controller database[/url] to determine gamepad names and mappings based on this GUID.
</description> </description>
</method> </method>
<method name="get_joy_name"> <method name="get_joy_name">
<return type="String" /> <return type="String" />
<argument index="0" name="device" type="int" /> <argument index="0" name="device" type="int" />
<description> <description>
Returns the name of the joypad at the specified device index. 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.
</description> </description>
</method> </method>
<method name="get_joy_vibration_duration"> <method name="get_joy_vibration_duration">