InputEventKey

Inherits: InputEventWithModifiers < InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for keyboard events.

Member Functions

int get_scancode ( ) const
int get_scancode_with_modifiers ( ) const
int get_unicode ( ) const
void set_echo ( bool echo )
void set_pressed ( bool pressed )
void set_scancode ( int scancode )
void set_unicode ( int unicode )

Member Variables

  • bool echo - Echo state of the key, i.e. whether it’s a repeat event or not.
  • bool pressed - Pressed state of the key.
  • int scancode - Scancode of the key, one of the KEY_* constants in [@Global Scope].
  • int unicode - Unicode identifier of the key (when relevant).

Member Function Description

  • int get_scancode ( ) const
  • int get_scancode_with_modifiers ( ) const
  • int get_unicode ( ) const
  • void set_echo ( bool echo )
  • void set_pressed ( bool pressed )
  • void set_scancode ( int scancode )
  • void set_unicode ( int unicode )