Skip to main content

Module input

Module input 

Source
Expand description

Allocation-free cumulative pointer motion and desktop edge detection.

Structs§

Bounds
MotionCounter
MotionScale
Receiver-side speed scaling, retaining subpixel motion between updates.
MotionTracker
ScrollScale
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.