mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Rename scancode to keycode.
Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
This commit is contained in:
@@ -250,10 +250,10 @@
|
||||
<method name="is_key_pressed" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<argument index="0" name="scancode" type="int">
|
||||
<argument index="0" name="keycode" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns [code]true[/code] if you are pressing the key. You can pass a [enum KeyList] constant.
|
||||
Returns [code]true[/code] if you are pressing the key in the current keyboard layout. You can pass a [enum KeyList] constant.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_mouse_button_pressed" qualifiers="const">
|
||||
|
||||
Reference in New Issue
Block a user