diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-03-27 02:56:29 +0200 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2022-01-20 20:55:14 +0200 |
commit | 5d17fe7d0ff1864c7243303778b0733beb837992 (patch) | |
tree | 72b1ad06a456afe9a41920697da7560757f1c3a1 /doc/classes | |
parent | 8fc0dd9997c80059ec2b273e7004daa458d370ee (diff) |
Add `Input.is_anything_pressed` method
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Input.xml | 6 |
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" /> |