In remote mode one physical move queues a .mouse and an .edgeCandidate,
so matching only the last entry meant the kinds alternated and motion was
never coalesced -- the ring would fill at two entries per move whenever
the Engine stalled, which is the case C3's coalescing exists to survive.
The scan stops at the first non-motion entry so transitions keep order.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Latest-wins is right for an absolute position and wrong for a
MOVE_MOUSE_RELATIVE delta, which would have silently dropped motion in
MoveMouseRelatively mode.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
RoutingState holds the snapshot and the virtual cursor behind one
OSAllocatedUnfairLock so the tap callback can decide synchronously
(contracts C3); CaptureQueue is the 4096-entry ring with the C3
coalescing and overflow policy, plus notices that survive a full ring.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>