Keyboard

object Keyboard

The current keyboard state.

Properties

Link copied to clipboard

The last character pressed, or the next one in the pressing queue.

Link copied to clipboard

Whether the alt key is currently down and being pressed.

Link copied to clipboard

Whether the control key is currently down and being pressed.

Link copied to clipboard

Whether the shift key is currently down and being pressed.

Link copied to clipboard

Whether the super key is currently down and being pressed.

Link copied to clipboard

The last key pressed, or the next one in the pressing queue.

Functions

Link copied to clipboard
fun isDown(char: Char): ERROR CLASS: Unresolved name: first

Whether a character is in down state, or being pressed.

fun isDown(key: Key): ERROR CLASS: Unresolved name: IsKeyDown

Whether the key is in down state, or being pressed.

Link copied to clipboard
fun isPressed(char: Char): ERROR CLASS: Unresolved name: first

Whether a character was pressed once.

fun isPressed(key: Key): ERROR CLASS: Unresolved name: IsKeyPressed

Whether the key was pressed once.

Link copied to clipboard
fun isReleased(char: Char): ERROR CLASS: Unresolved name: first

Whether a character was released once.

fun isReleased(key: Key): ERROR CLASS: Unresolved name: IsKeyReleased

Whether the key was released once.

Link copied to clipboard
fun isUp(char: Char): ERROR CLASS: Unresolved name: first

Whether a character is in up state, or not being pressed.

fun isUp(key: Key): ERROR CLASS: Unresolved name: IsKeyUp

Whether the key is in up state, or not being pressed.

Link copied to clipboard
fun setExitKey(key: Key): ERROR CLASS: Unresolved name: SetExitKey

Sets the exit key for the program. Default is Key.ESC.