2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 13:18:53 +00:00
<class name= "InputEventWithModifiers" inherits= "InputEventFromWindow" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 20:42:36 +00:00
<brief_description >
2017-10-15 22:07:13 +00:00
Base class for keys events with modifiers.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2020-03-10 10:41:36 +00:00
Contains keys events information with modifiers support like [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See [method Node._input].
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
2021-11-15 09:43:07 +00:00
<link title= "InputEvent" > $DOCS_URL/tutorials/inputs/inputevent.html</link>
2017-09-12 20:42:36 +00:00
</tutorials>
2022-09-02 09:37:48 +00:00
<methods >
<method name= "is_command_or_control_pressed" qualifiers= "const" >
<return type= "bool" />
<description >
On macOS, returns [code]true[/code] if [kbd]Meta[/kbd] ([kbd]Command[/kbd]) is pressed.
On other platforms, returns [code]true[/code] if [kbd]Ctrl[/kbd] is pressed.
</description>
</method>
</methods>
2017-09-12 20:42:36 +00:00
<members >
2021-04-24 20:33:50 +00:00
<member name= "alt_pressed" type= "bool" setter= "set_alt_pressed" getter= "is_alt_pressed" default= "false" >
2020-03-10 10:41:36 +00:00
State of the [kbd]Alt[/kbd] modifier.
2017-09-12 20:42:36 +00:00
</member>
2022-09-02 09:37:48 +00:00
<member name= "command_or_control_autoremap" type= "bool" setter= "set_command_or_control_autoremap" getter= "is_command_or_control_autoremap" default= "false" >
2022-09-30 12:23:36 +00:00
Automatically use [kbd]Meta[/kbd] ([kbd]Command[/kbd]) on macOS and [kbd]Ctrl[/kbd] on other platforms. If [code]true[/code], [member ctrl_pressed] and [member meta_pressed] cannot be set.
2017-09-12 20:42:36 +00:00
</member>
2021-04-24 20:33:50 +00:00
<member name= "ctrl_pressed" type= "bool" setter= "set_ctrl_pressed" getter= "is_ctrl_pressed" default= "false" >
2020-03-10 10:41:36 +00:00
State of the [kbd]Ctrl[/kbd] modifier.
2017-09-12 20:42:36 +00:00
</member>
2021-04-24 20:33:50 +00:00
<member name= "meta_pressed" type= "bool" setter= "set_meta_pressed" getter= "is_meta_pressed" default= "false" >
2022-09-02 09:37:48 +00:00
State of the [kbd]Meta[/kbd] modifier. On Windows and Linux, this represents the Windows key (sometimes called "meta" or "super" on Linux). On macOS, this represents the Command key.
2017-09-12 20:42:36 +00:00
</member>
2021-04-24 20:33:50 +00:00
<member name= "shift_pressed" type= "bool" setter= "set_shift_pressed" getter= "is_shift_pressed" default= "false" >
2020-03-10 10:41:36 +00:00
State of the [kbd]Shift[/kbd] modifier.
2017-09-12 20:42:36 +00:00
</member>
</members>
</class>