Merge pull request #77768 from Calinou/doc-input-joy-name-guid

Document the database for `Input.get_joy_name()` and `Input.get_joy_guid()`
This commit is contained in:
Yuri Sizov 2023-06-02 15:10:21 +02:00 committed by GitHub
commit afb2480947
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,14 +118,14 @@
<return type="String" />
<param index="0" name="device" type="int" />
<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>
</method>
<method name="get_joy_name">
<return type="String" />
<param index="0" name="device" type="int" />
<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>
</method>
<method name="get_joy_vibration_duration">