/Godot 3.1


Inherits: InputEvent < Resource < Reference < Object

Inherited By: InputEventGesture, InputEventKey, InputEventMouse

Category: Core

Brief Description

Base class for keys events with modifiers.


bool alt
bool command
bool control
bool meta
bool shift


Contains keys events information with modifiers support like Shift or Alt. See Node._input.


Property Descriptions

bool alt

Setter set_alt(value)
Getter get_alt()

State of the Alt modifier.

bool command

Setter set_command(value)
Getter get_command()

State of the Command modifier.

bool control

Setter set_control(value)
Getter get_control()

State of the Ctrl modifier.

bool meta

Setter set_metakey(value)
Getter get_metakey()

State of the Meta modifier.

bool shift

Setter set_shift(value)
Getter get_shift()

State of the Shift modifier.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.