microsoft / microsoft/PowerToys
[Screen Ruler] Add haptic feedback for detected measurement edges
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
## Summary
Add haptic feedback as Screen Ruler edge detection identifies and traverses measurement boundaries.
This is a scoped implementation tracker for #48761 and should use the shared managed haptics availability, settings, and throttling behavior established in #50162.
## Scope
- Play **Hover** once for each newly detected edge as the measuring line extends.
- Track the active detected edge and trigger only when its stable identity changes.
- Add duplicate suppression, spatial hysteresis, and a minimum interval suitable for higher-frequency precision feedback.
- Expose a Screen Ruler-specific toggle under the shared global haptics setting.
## Acceptance criteria
- Separate stable edges produce one Hover pulse each.
- A stationary edge does not buzz or repeatedly trigger.
- Noisy or transient detections below the stability threshold do not trigger feedback.
- Unsupported OS versions and systems without a compatible haptic device behave exactly as before.
- Users can disable haptics globally and for Screen Ruler.
Contributor guide
Assessment
This issue has not been assessed yet.