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 >
2020-08-05 20:43:40 +08:00
<link title= "InputEvent" > https://docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html</link>
2017-09-13 04:42:36 +08:00
</tutorials>
<methods >
</methods>
<members >
2019-06-29 18:38:01 +08:00
<member name= "alt" type= "bool" setter= "set_alt" getter= "get_alt" 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>
2019-06-29 18:38:01 +08:00
<member name= "command" type= "bool" setter= "set_command" getter= "get_command" 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>
2019-06-29 18:38:01 +08:00
<member name= "control" type= "bool" setter= "set_control" getter= "get_control" 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>
2019-06-29 18:38:01 +08:00
<member name= "meta" type= "bool" setter= "set_metakey" getter= "get_metakey" 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>
2019-06-29 18:38:01 +08:00
<member name= "shift" type= "bool" setter= "set_shift" getter= "get_shift" 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" >
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]. If [code]false[/code], those same keys will be serialized as [member meta] on macOS and [member control] on all other platforms.
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>
<constants >
</constants>
</class>