Skip to main content

InputEvent

Inherits: Resource < RefCounted < Object

Description

Abstract base class for input events. All types of input events inherit from this class.

Properties

int
default:"0"
The event’s device ID.

Methods

is_action_pressed

Returns true if the given action matches this event and is being pressed.

is_action_released

Returns true if the given action matches this event and is released.

is_pressed

Returns true if this input event is pressed.

is_echo

Returns true if this input event is an echo event (for key events).

as_text

Returns a String representation of the event.

Example Usage