Keyboard

Keyboard

Members

Static functions

getCurrentCharacter
dchar getCurrentCharacter()

Gets the current typed text character for text input

initialize
void initialize(GLFWwindow* window)

Constructs the underlying data needed

isCapsLockOn
bool isCapsLockOn()

Gets whether CapsLock is on

isKeyPressed
bool isKeyPressed(Key key)

Gets whether a key is pressed

isKeyReleased
bool isKeyReleased(Key key)

Gets whether a key is pressed

isNumLockOn
bool isNumLockOn()

Gets whether NumLock is on

Static variables

onKeyEvent
Event!Key onKeyEvent;

Event that is called every time a new ket event is emitted

onKeyboardType
Event!dchar onKeyboardType;

Event that is called every time a new text character is typed

Meta