2017-09-13 04:42:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-03-31 00:22:57 +08:00
<class name= "InputEventWithModifiers" inherits= "InputEventFromWindow" version= "4.0" >
2017-09-13 04:42:36 +08:00
<brief_description >
2017-10-16 06:07:13 +08:00
Base class for keys events with modifiers.
2017-09-13 04:42:36 +08:00
</brief_description>
<description >
2020-03-10 18:41:36 +08:00
Contains keys events information with modifiers support like [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See [method Node._input].
2017-09-13 04:42:36 +08:00
</description>
<tutorials >
2021-11-15 17:43:07 +08:00
<link title= "InputEvent" > $DOCS_URL/tutorials/inputs/inputevent.html</link>
2017-09-13 04:42:36 +08:00
</tutorials>
<members >
2021-04-25 04:33:50 +08:00
<member name= "alt_pressed" type= "bool" setter= "set_alt_pressed" getter= "is_alt_pressed" default= "false" >
2020-03-10 18:41:36 +08:00
State of the [kbd]Alt[/kbd] modifier.
2017-09-13 04:42:36 +08:00
</member>
2021-04-25 04:33:50 +08:00
<member name= "command_pressed" type= "bool" setter= "set_command_pressed" getter= "is_command_pressed" default= "false" >
2020-03-10 18:41:36 +08:00
State of the [kbd]Cmd[/kbd] modifier.
2017-09-13 04:42:36 +08:00
</member>
2021-04-25 04:33:50 +08:00
<member name= "ctrl_pressed" type= "bool" setter= "set_ctrl_pressed" getter= "is_ctrl_pressed" default= "false" >
2020-03-10 18:41:36 +08:00
State of the [kbd]Ctrl[/kbd] modifier.
2017-09-13 04:42:36 +08:00
</member>
2021-04-25 04:33:50 +08:00
<member name= "meta_pressed" type= "bool" setter= "set_meta_pressed" getter= "is_meta_pressed" default= "false" >
2020-03-10 18:41:36 +08:00
State of the [kbd]Meta[/kbd] modifier.
2017-09-13 04:42:36 +08:00
</member>
2021-04-25 04:33:50 +08:00
<member name= "shift_pressed" type= "bool" setter= "set_shift_pressed" getter= "is_shift_pressed" default= "false" >
2020-03-10 18:41:36 +08:00
State of the [kbd]Shift[/kbd] modifier.
2017-09-13 04:42:36 +08:00
</member>
2020-09-28 22:23:51 +08:00
<member name= "store_command" type= "bool" setter= "set_store_command" getter= "is_storing_command" default= "true" >
2021-04-25 04:33:50 +08:00
If [code]true[/code], pressing [kbd]Cmd[/kbd] on macOS or [kbd]Ctrl[/kbd] on all other platforms will both be serialized as [member command_pressed]. If [code]false[/code], those same keys will be serialized as [member meta_pressed] on macOS and [member ctrl_pressed] on all other platforms.
2020-09-28 22:23:51 +08:00
This aids with cross-platform compatibility when developing e.g. on Windows for macOS, or vice-versa.
</member>
2017-09-13 04:42:36 +08:00
</members>
</class>