mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-05 04:57:32 +01:00
While a calibration run is on, the rider never has to touch the screen: - hold shift down: too heavy - hold shift up: too light - press both shifters together: about right / next grade - buttons mapped to navigate left / select / navigate right answer directly on controllers that have them Short presses still shift, so the rider can pick a gear on each grade. The run installs a ControllerInputInterceptor on BaseDevice; the device layer offers it every press (with the button's single-click action), claims the long press of the shift buttons, and catches the shifter chord before the front-shift combo. Consumed presses are not forwarded to a trainer app, keyboard or touch output. Two controller halves pressed together within 150 ms count as the chord and undo the first shift; a held button cannot answer twice within 700 ms. Every way a run ends (finish, stop, leaving the page, a trainer app connecting) removes the interceptor. An answer gives the shift haptic/sound feedback, outlines its button briefly and is announced for screen readers. With a controller connected, each answer shows its controller gesture underneath, in all six locales. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>