2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 14:18:53 +01: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 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 >
2021-11-15 10:43:07 +01:00
<link title= "InputEvent" > $DOCS_URL/tutorials/inputs/inputevent.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
2022-09-02 11:37:48 +02: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 22:42:36 +02:00
<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>
2022-09-02 11:37:48 +02:00
<member name= "command_or_control_autoremap" type= "bool" setter= "set_command_or_control_autoremap" getter= "is_command_or_control_autoremap" default= "false" >
Automaticaly 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 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" >
2022-09-02 11:37:48 +02: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 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>
</members>
</class>