summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-20 22:51:01 +0100
committerGitHub <noreply@github.com>2022-01-20 22:51:01 +0100
commit73d00131c6887f6993ab78cc8cd95c17166f29a4 (patch)
treecf60b9f467366d3c8e735a78886e8bd32f35b96c /doc/classes
parentcfb986c6318f61b4b67bc3af4188c06a0717bd9a (diff)
parent5d17fe7d0ff1864c7243303778b0733beb837992 (diff)
Merge pull request #35012 from Xrayez/press-any-key
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Input.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml
index 45b15331d2..423e58f5c6 100644
--- a/doc/classes/Input.xml
+++ b/doc/classes/Input.xml
@@ -209,6 +209,12 @@
[b]Note:[/b] Due to keyboard ghosting, [method is_action_pressed] may return [code]false[/code] even if one of the action's keys is pressed. See [url=$DOCS_URL/tutorials/inputs/input_examples.html#keyboard-events]Input examples[/url] in the documentation for more information.
</description>
</method>
+ <method name="is_anything_pressed" qualifiers="const">
+ <return type="bool" />
+ <description>
+ Returns [code]true[/code] if any action, key, joypad button, or mouse button is being pressed. This will also return [code]true[/code] if any action is simulated via code by calling [method action_press].
+ </description>
+ </method>
<method name="is_joy_button_pressed" qualifiers="const">
<return type="bool" />
<argument index="0" name="device" type="int" />