Keyboard

Provides an interface to the user's keyboard.

Constructors

this
this()
Undocumented in source.

Members

Functions

getSDLKeycodeFromKey
SDL_Keycode getSDLKeycodeFromKey(KeyConstant key)
Undocumented in source. Be warned that the author may not have intended to support it.
isDown
bool isDown(KeyConstant key)
markKeyAsPressed
bool markKeyAsPressed(SDL_Scancode scancode)
Undocumented in source. Be warned that the author may not have intended to support it.
markKeyAsReleased
bool markKeyAsReleased(SDL_Scancode scancode)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_state
bool[SDL_NUM_SCANCODES] _state;
Undocumented in source.

Meta