W3cubDocs

/Godot 3.0

InputEventKey

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.

Description

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

Member Function Description

int get_scancode_with_modifiers ( ) const

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_inputeventkey.html