You've already forked godot
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user