Expand description
Allocation-free cumulative pointer motion and desktop edge detection.
Structs§
- Bounds
- Motion
Counter - Motion
Scale - Receiver-side speed scaling, retaining subpixel motion between updates.
- Motion
Tracker - Scroll
Scale - Receiver-side scroll scaling with independent pixel and line remainders.
Constants§
- CORNER_
BOX - Maximum distance in pixels from an edge end for a diagonal crossing.
Functions§
- clamp_
position - Clamp a desktop point to its bounds, including negative origins.
- corner_
push - Detect an edge push whose other axis points toward a nearby corner.
- edge_
push - Detect outward motion at or beyond an edge; horizontal motion wins at corners.
- landing_
point - Project a bbox-relative landing onto the outer monitor edge in that direction.
- within_
notch - Whether a desktop x coordinate falls within the notch’s horizontal span.