Class InputEventKeyboard
Keyboard input event.
Constructors
Name | Description |
---|---|
this
(key, pressed, held, modifiers)
|
Fields
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
handled [get]
|
bool | Whether this InputEvent has been handled.
|
Methods
Name | Description |
---|---|
stopPropagation
()
|
Mark this InputEvent as handled, stopping propagation through the input tree.
|