Inherits: InputEventWithModifiers < InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for keyboard events.

Member Functions

int get_scancode_with_modifiers ( ) const

Member Variables

  • bool echo - If true the key was already pressed before this event. It means the user is holding the key down.
  • bool pressed - If true the key’s state is pressed. If false the key’s state is released.
  • int scancode - Key scancode, one of the KEY_* constants in @global Scope.
  • int unicode - Key unicode identifier when relevant.


Stores key presses on the keyboard. Supports key presses, key releases and echo events.

Member Function Description

  • int get_scancode_with_modifiers ( ) const