summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2021-11-23 11:14:19 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2021-11-23 11:14:19 +0200
commit9877d91c4a573a7538c042f7f01b5c97e17dcd2d (patch)
tree1d374ab023c81c6c5f2c79168cdf81b4467b0533 /doc/classes
parent1e71cab79775137beade1d9f78c709a1a4f97cfc (diff)
Add Input.is_physical_key_pressed method.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Input.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml
index 4ee319f554..cd5ba2e17f 100644
--- a/doc/classes/Input.xml
+++ b/doc/classes/Input.xml
@@ -236,6 +236,13 @@
Returns [code]true[/code] if you are pressing the mouse button specified with [enum MouseButton].
</description>
</method>
+ <method name="is_physical_key_pressed" qualifiers="const">
+ <return type="bool" />
+ <argument index="0" name="keycode" type="int" enum="Key" />
+ <description>
+ Returns [code]true[/code] if you are pressing the key in the physical location on the 101/102-key US QWERTY keyboard. You can pass a [enum Key] constant.
+ </description>
+ </method>
<method name="joy_connection_changed">
<return type="void" />
<argument index="0" name="device" type="int" />