summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-10-05 15:27:46 +0200
committerGitHub <noreply@github.com>2018-10-05 15:27:46 +0200
commit3bcab46ea513aea363951ec7301e80e262408970 (patch)
tree6cfdee7414aafefc1a70ef4d55236c990b39d154
parentda6646dd5e5c779d72d5819bffce4a4e96e94344 (diff)
parent5016ef6fe0a26f1d612bd79c33a2e9d1479a5c7a (diff)
Merge pull request #22743 from guilhermefelipecgs/add_input_doc
[Docs] Add doc for Input::get_action_strength
-rw-r--r--doc/classes/Input.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml
index 338d01ae5f..10ec15b99d 100644
--- a/doc/classes/Input.xml
+++ b/doc/classes/Input.xml
@@ -55,6 +55,7 @@
<argument index="0" name="action" type="String">
</argument>
<description>
+ Returns a value between 0 and 1 representing the intensity of the given action. In a joypad, for example, the further away the axis (analog sticks or L2, R2 triggers) is from the dead zone, the closer the value will be to 1. If the action is mapped to a control that has no axis as the keyboard, the value returned will be 0 or 1.
</description>
</method>
<method name="get_connected_joypads">