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 >
2023-04-27 23:35:33 +00:00
Abstract base class for input events affected by modifier keys like [kbd]Shift[/kbd] and [kbd]Alt[/kbd].
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2023-04-27 23:35:33 +00:00
Stores information about mouse, keyboard, and touch gesture input events. This includes information about which modifier keys are pressed, such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See [method Node._input].
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
2023-04-27 23:35:33 +00:00
<link title= "Using 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 >
2022-12-10 23:21:22 +00:00
<method name= "get_modifiers_mask" qualifiers= "const" >
<return type= "int" enum= "KeyModifierMask" />
<description >
Returns the keycode combination of modifier keys.
</description>
</method>
2022-09-02 09:37:48 +00:00
<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>