Allow to specify a custom strength when calling Input.action_press(), this allows virtual axis, mainly for mobile.

This commit is contained in:
Davide Baldo 2018-11-09 21:32:32 +00:00
parent a16d9c6ab6
commit 1b0c7515ff
5 changed files with 8 additions and 6 deletions

View file

@ -17,8 +17,10 @@
</return>
<argument index="0" name="action" type="String">
</argument>
<argument index="1" name="strength" type="float" default="1.0f">
</argument>
<description>
This will simulate pressing the specified action.
This will simulate pressing the specified action. The strength can be used for non-boolean actions.
</description>
</method>
<method name="action_release">