Inherits: InputEventFromWindow < InputEvent < Resource < RefCounted < Object
Inherited By: InputEventGesture, InputEventKey, InputEventMouse
Abstract base class for input events affected by modifier keys like Shift and Alt.
Stores information about mouse, keyboard, and touch gesture input events. This includes information about which modifier keys are pressed, such as Shift or Alt. See Node._input.
| ||
| ||
| ||
| ||
|
BitField<KeyModifierMask> | get_modifiers_mask ( ) const |
is_command_or_control_pressed ( ) const |
false
State of the Alt modifier.
false
Automatically use Meta (Cmd) on macOS and Ctrl on other platforms. If true, ctrl_pressed and meta_pressed cannot be set.
false
State of the Ctrl modifier.
false
State of the Meta modifier. On Windows and Linux, this represents the Windows key (sometimes called "meta" or "super" on Linux). On macOS, this represents the Command key.
false
State of the Shift modifier.
Returns the keycode combination of modifier keys.
On macOS, returns true if Meta (Cmd) is pressed.
On other platforms, returns true if Ctrl is pressed.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_inputeventwithmodifiers.html