Skip to content

Add whole-chassis tap/slap detection with actions - #32

Open
anirudh12032008 wants to merge 1 commit into
masterfrom
slap
Open

anirudh12032008 wants to merge 1 commit into
masterfrom
slap

Conversation

@anirudh12032008

Copy link
Copy Markdown
Collaborator

Extend sensing beyond the trackpad to the whole chassis via the Apple Silicon SPU accelerometer + gyroscope (IOKit HID). New pipeline:

  • AccelerometerBridge streams paired accel/gyro samples (driver-wake + dedicated run loop, direct IOService matching).
  • ImpactDetector classifies taps/slaps from onset amplitude+jerk with an adaptive noise floor, peak-hold, and refractory window.
  • Chassis Map: live crosshair + X/Y/Z readout and fading impact dots.
  • Zone calibration classifies left/right by nearest onset-feature centroid (unit accel direction + unit gyro direction).
  • Tap Actions: bind single/double/triple tap/slap (optionally by side) to reuse CustomGestureAction, with burst-settling for counts.

Extend sensing beyond the trackpad to the whole chassis via the Apple
Silicon SPU accelerometer + gyroscope (IOKit HID). New pipeline:

- AccelerometerBridge streams paired accel/gyro samples (driver-wake +
  dedicated run loop, direct IOService matching).
- ImpactDetector classifies taps/slaps from onset amplitude+jerk with an
  adaptive noise floor, peak-hold, and refractory window.
- Chassis Map: live crosshair + X/Y/Z readout and fading impact dots.
- Zone calibration classifies left/right by nearest onset-feature
  centroid (unit accel direction + unit gyro direction).
- Tap Actions: bind single/double/triple tap/slap (optionally by side)
  to reuse CustomGestureAction, with burst-settling for counts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@anirudh12032008 anirudh12032008 linked an issue Jul 14, 2026 that may be closed by this pull request
@yxshv
yxshv self-requested a review July 14, 2026 08:04
@anirudh12032008
anirudh12032008 removed the request for review from yxshv July 14, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: slap

1 participant