Class Keyboard

The keyboard input source which accumulates keyboard information

class Keyboard
  : InputSource!(SDL_Keycode)
  , EventHandler ;

Constructors

NameDescription
this Initializes all keys of a keyboard

Properties

NameTypeDescription
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

NameDescription
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

NameDescription
allKeys Allows allPressables to be called as allKeys