summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDavide Baldo <davide@baldo.me>2018-11-09 21:32:32 +0000
committerDavide Baldo <davide@baldo.me>2018-11-10 10:25:59 +0000
commit1b0c7515ffe2bbb0cb8cb08bf9d21f68d4648d89 (patch)
treec82f93bdf88d04c41b9e6465d2f6c2c56eb50414 /doc
parenta16d9c6ab68cadb3cff07ef8b7b8c00717e98922 (diff)
Allow to specify a custom strength when calling Input.action_press(), this allows virtual axis, mainly for mobile.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Input.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml
index 38804e40b4..25a2f45773 100644
--- a/doc/classes/Input.xml
+++ b/doc/classes/Input.xml
@@ -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">