of
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.
The fabricated facts mean exactly what sampled ones do: keysDown is level state, keysPressed and keysReleased are edges claimed to have landed since the last edge-consuming step. The caller owns that contract — nothing checks an edge against the level state. NONE is the no-input shorthand.
Return
The snapshot, indistinguishable from a sampled one.
Parameters
pointers
The active pointers, fabricated via Pointer.of.
keysDown
The keys held down.
keysPressed
The keys claimed as press edges.
keysReleased
The keys claimed as release edges.