Allow to specify a custom strength when calling Input.action_press(), this allows virtual axis, mainly for mobile.
This commit is contained in:
parent
a16d9c6ab6
commit
1b0c7515ff
5 changed files with 8 additions and 6 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue