2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-03-30 18:22:57 +02:00
<class name= "InputEventWithModifiers" inherits= "InputEventFromWindow" version= "4.0" >
2017-09-12 22:42:36 +02:00
<brief_description >
2017-10-16 00:07:13 +02:00
Base class for keys events with modifiers.
2017-09-12 22:42:36 +02:00
</brief_description>
<description >
2020-03-10 11:41:36 +01:00
Contains keys events information with modifiers support like [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See [method Node._input].
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
2020-08-05 14:43:40 +02:00
<link title= "InputEvent" > https://docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<members >
2021-04-24 22:33:50 +02:00
<member name= "alt_pressed" type= "bool" setter= "set_alt_pressed" getter= "is_alt_pressed" default= "false" >
2020-03-10 11:41:36 +01:00
State of the [kbd]Alt[/kbd] modifier.
2017-09-12 22:42:36 +02:00
</member>
2021-04-24 22:33:50 +02:00
<member name= "command_pressed" type= "bool" setter= "set_command_pressed" getter= "is_command_pressed" default= "false" >
2020-03-10 11:41:36 +01:00
State of the [kbd]Cmd[/kbd] modifier.
2017-09-12 22:42:36 +02:00
</member>
2021-04-24 22:33:50 +02:00
<member name= "ctrl_pressed" type= "bool" setter= "set_ctrl_pressed" getter= "is_ctrl_pressed" default= "false" >
2020-03-10 11:41:36 +01:00
State of the [kbd]Ctrl[/kbd] modifier.
2017-09-12 22:42:36 +02:00
</member>
2021-04-24 22:33:50 +02:00
<member name= "meta_pressed" type= "bool" setter= "set_meta_pressed" getter= "is_meta_pressed" default= "false" >
2020-03-10 11:41:36 +01:00
State of the [kbd]Meta[/kbd] modifier.
2017-09-12 22:42:36 +02:00
</member>
2021-04-24 22:33:50 +02:00
<member name= "shift_pressed" type= "bool" setter= "set_shift_pressed" getter= "is_shift_pressed" default= "false" >
2020-03-10 11:41:36 +01:00
State of the [kbd]Shift[/kbd] modifier.
2017-09-12 22:42:36 +02:00
</member>
2020-09-28 16:23:51 +02:00
<member name= "store_command" type= "bool" setter= "set_store_command" getter= "is_storing_command" default= "true" >
2021-04-24 22:33:50 +02: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 16:23:51 +02:00
This aids with cross-platform compatibility when developing e.g. on Windows for macOS, or vice-versa.
</member>
2017-09-12 22:42:36 +02:00
</members>
</class>