Expand description
Long-press detection: distinguishes short press from long press using timestamps.
Call update(edge, now_ms) on each input poll. Returns a Gesture when detected:
ShortPresson release before thresholdLongPresson hold ≥ threshold
Platform-agnostic: firmware provides Mono::now(), simulator provides Instant::now().
Structs§
- Long
Press Detector - Detects long-press gestures using absolute timestamps.
Enums§
Constants§
- LONG_
PRESS_ MS - Default long-press threshold in milliseconds.