toyGraphics / com.anysolo.toyGraphics / Keyboard

Keyboard

class Keyboard

Use this class to work with keyboard

Constructors

<init>

Keyboard(window: Window)

Use this class to work with keyboard

Properties

window

val window: Window

Functions

getPressedKey

fun getPressedKey(): Key?

Return the pressed key pressed. Pressed keys collected in queue. This function returns the key which was pressed first. If the queue is empty returns null