Class Keyboard
The keyboard input source which accumulates keyboard information
Constructors
Name | Description |
this
|
Initializes all keys of a keyboard
|
Properties
Name | Type | Description |
allPressables [get]
|
Pressable!(derelict.sdl2.internal.sdl_types.SDL_Keycode)[derelict.sdl2.internal.sdl_types.SDL_Keycode] | Returns all of the keys on the keyboard
|
allPressables [get]
|
Pressable!T[T] | Return a list of all of the pressables that can be accessed by the template type
|
Methods
Name | Description |
handleEvent
|
Accumulates all of the keyboard events and updates stored pressables accordingly
|
getPressedPressables
|
Returns a list of all of the pressables that are held down.
|
Aliases
Name | Description |
allKeys
|
Allows allPressables to be called as allKeys
|