isPressed

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

Whether the key was pressed once.

Return

true if pressed, false otherwise

Parameters

key

The key to check


fun isPressed(char: Char): ERROR CLASS: Unresolved name: first

Whether a character was pressed once.

Return

true if pressed, false otherwise

Parameters

char

The character to check