Keyboard

*

Members

Functions

isButtonDown
bool isButtonDown(KeyboardButton button)

* Returns true if keyboard button was just pressed in an event loop.

isButtonHold
bool isButtonHold(KeyboardButton button)

* Returns true if keyboard button is still pressed in an event loop. * Use case: player movement.

isButtonNone
bool isButtonNone(KeyboardButton button)

* Returns true if keyboard button has no input action in an event loop.

isButtonRepeat
bool isButtonRepeat(KeyboardButton button)

* Returns true if keyboard button is still pressed in an event loop after a while since pressed. * Strongly recommended for text input.

isButtonUp
bool isButtonUp(KeyboardButton button)

* Returns true if keyboard button was just released in an event loop.

isUnfolding
bool isUnfolding(KeyboardButton button, KeyboardAction action)

*

update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta