You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(detection): real-hardware tap detection with typing suppression
Replace the simulated accelerometer pipeline with working IOKit-based access
to AppleSPUHIDDevice, so physical palm-rest taps on Apple Silicon MacBooks
actually fire events. The essential fix: wake-up properties must be written
to AppleSPUHIDDriver nodes (not the device), or the sensor stays dormant.
Detector rewritten as a refractory-and-release state machine so a single
physical tap (with its damped oscillation) counts as exactly one tap.
Thresholds re-tuned empirically for palm-rest signal levels (~0.02g peaks).
Global CGEventTap suppresses typing-induced vibrations: samples within 200ms
of a keystroke are dropped, and tap emission is deferred 500ms so any key
event during that window cancels the tap.
App side: Simulate and Mode settings removed from the menu (Simulate was a
dev crutch, Desk mode was never calibrated). Test Mode + auto-start are the
defaults. Sidecar runs under setuid-root via a one-time admin prompt, and
notifications now go through osascript (reliable without signed entitlements).