Class InputEventKeyboard

Keyboard input event.

class InputEventKeyboard
  : InputEvent ;

Constructors

NameDescription
this (key, pressed, held, modifiers)

Fields

NameTypeDescription
held const(bool)Whether the key was already pressed before this event.
key const(KeyboardKey)
modifiers const(int)A bitwise combitation of Modifiers
pressed const(bool)Whether the key was just pressed. If false, the key is being held *or* was just released
device const(InputDevice)

Properties

NameTypeDescription
handled[get] boolWhether this InputEvent has been handled.

Methods

NameDescription
stopPropagation () Mark this InputEvent as handled, stopping propagation through the input tree.