mirror of
https://github.com/godotengine/godot.git
synced 2026-02-08 03:38:29 +00:00
doc: Sync classref with current source
This commit is contained in:
@@ -31,9 +31,6 @@
|
||||
<member name="echo" type="bool" setter="set_echo" getter="is_echo" default="false">
|
||||
If [code]true[/code], the key was already pressed before this event. It means the user is holding the key down.
|
||||
</member>
|
||||
<member name="pressed" type="bool" setter="set_pressed" getter="is_pressed" default="false">
|
||||
If [code]true[/code], the key's state is pressed. If [code]false[/code], the key's state is released.
|
||||
</member>
|
||||
<member name="keycode" type="int" setter="set_keycode" getter="get_keycode" default="0">
|
||||
The key keycode, which corresponds to one of the [enum KeyList] constants. Represent key in the current keyboard layout.
|
||||
To get a human-readable representation of the [InputEventKey], use [code]OS.get_keycode_string(event.keycode)[/code] where [code]event[/code] is the [InputEventKey].
|
||||
@@ -42,6 +39,9 @@
|
||||
Key physical keycode, which corresponds to one of the [enum KeyList] constants. Represent the physical location of a key on the 101/102-key US QWERTY keyboard.
|
||||
To get a human-readable representation of the [InputEventKey], use [code]OS.get_keycode_string(event.keycode)[/code] where [code]event[/code] is the [InputEventKey].
|
||||
</member>
|
||||
<member name="pressed" type="bool" setter="set_pressed" getter="is_pressed" default="false">
|
||||
If [code]true[/code], the key's state is pressed. If [code]false[/code], the key's state is released.
|
||||
</member>
|
||||
<member name="unicode" type="int" setter="set_unicode" getter="get_unicode" default="0">
|
||||
The key Unicode identifier (when relevant). Unicode identifiers for the composite characters and complex scripts may not be available unless IME input mode is active. See [method OS.set_ime_active] for more information.
|
||||
</member>
|
||||
|
||||
Reference in New Issue
Block a user