1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Add get_dead_zone() method to InputMap

This commit adds a new method to the `InputMap`, allowing the user to get the value of an action's dead zone as a float.

(cherry picked from commit c6f28ed62b)
This commit is contained in:
Nick H
2021-07-02 00:02:28 -04:00
committed by Rémi Verschelde
parent 686a27b278
commit 28ea0cf1e2
3 changed files with 17 additions and 0 deletions

View File

@@ -41,6 +41,15 @@
Removes all events from an action.
</description>
</method>
<method name="action_get_deadzone">
<return type="float">
</return>
<argument index="0" name="action" type="String">
</argument>
<description>
Returns a deadzone value for the action.
</description>
</method>
<method name="action_has_event">
<return type="bool">
</return>