Companion

object Companion

Properties

Link copied to clipboard
val NONE: Input

The neutral snapshot: no pointers, no keys down, no latched edges — the input of a step driven without a user, e.g. a headless test.

Functions

Link copied to clipboard
fun of(pointers: List<Pointer> = emptyList(), keysDown: Set<Key> = emptySet(), keysPressed: Set<Key> = emptySet(), keysReleased: Set<Key> = emptySet()): Input

Builds an input snapshot from hand-fabricated state — keys and pointers stated explicitly instead of sampled from a surface.