SDL2Keyboard

Holds SDL keyboard state.

Constructors

this
this(SDL2 sdl2)
Undocumented in source.

Members

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
isPressed
bool isPressed(SDL_Keycode 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.
testAndRelease
bool testAndRelease(SDL_Keycode key)

Mark a key as unpressed.

Bugs

This class should disappear.

Meta