Controls
class Controls(val keys: Set<Key> = emptySet(), val pointer: FlatPoint? = null, val pointerDown: Boolean = false)
One step's commanded input, stated as level state only: which keys are held, and where the pointer is.
There are no edge flags to manage — drive derives press and release edges by comparing each step's controls against the previous step's, so a script states only what is held and the latching contract falls out correctly by construction.
Constructors
Properties
Link copied to clipboard
Whether the pointer is pressed — meaningful only while pointer is non-null.