mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #76045 from Eoin-ONeill-Yokai/steaminput-fix
Prevent double input events on gamepad when running through steam input
This commit is contained in:
@@ -343,6 +343,15 @@
|
||||
[b]Note:[/b] This value can be immediately overwritten by the hardware sensor value on Android and iOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="should_ignore_device" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="vendor_id" type="int" />
|
||||
<param index="1" name="product_id" type="int" />
|
||||
<description>
|
||||
Queries whether an input device should be ignored or not. Devices can be ignored by setting the environment variable [code]SDL_GAMECONTROLLER_IGNORE_DEVICES[/code]. Read the [url=https://wiki.libsdl.org/SDL2]SDL documentation[/url] for more information.
|
||||
[b]Note:[/b] Some 3rd party tools can contribute to the list of ignored devices. For example, [i]SteamInput[/i] creates virtual devices from physical devices for remapping purposes. To avoid handling the same input device twice, the original device is added to the ignore list.
|
||||
</description>
|
||||
</method>
|
||||
<method name="start_joy_vibration">
|
||||
<return type="void" />
|
||||
<param index="0" name="device" type="int" />
|
||||
|
||||
Reference in New Issue
Block a user