KeyboardState

value class KeyboardState(val gameTick: Long, val connected: Boolean, held: Long, pressed: Long, released: Long)(source)

One observation; press/release edges coalesce since the preceding snapshot.

Constructors

Link copied to clipboard
constructor(gameTick: Long, connected: Boolean, held: Long, pressed: Long, released: Long)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun isDown(key: Key): Boolean
Link copied to clipboard
Link copied to clipboard