toyGraphics / com.anysolo.toyGraphics / KeyboardEvent

KeyboardEvent

data class KeyboardEvent

Keyboard event.

Contains information about what key was pressed or released. If isPressed == true then the key was pressed otherwise released.

Constructors

<init>

KeyboardEvent(code: Int, isPressed: Boolean)

Keyboard event.

Properties

code

val code: Int

isPressed

val isPressed: Boolean