of
fun of(position: FlatPoint, isDown: Boolean = false, wasPressed: Boolean = false, wasReleased: Boolean = false): Pointer
Builds a pointer snapshot from hand-fabricated state — a sampled pointer's explicit counterpart.
The four facts stay independent, under the sampled contract: isDown is level state, wasPressed and wasReleased 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.
Return
The pointer snapshot, indistinguishable from a sampled one.
Parameters
position
Where the pointer is, as a FlatPoint in CGA model units.
isDown
Whether the pointer is pressed.
wasPressed
Whether a press edge is claimed.
wasReleased
Whether a release edge is claimed.