mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-02 18:19:21 +01:00
A saved keymap stores a button by name only. On reload, `leftSteer` decodes to the Elite Sterzo's button, not the KICKR BIKE's, so the KICKR's steer buttons lost their mapping after every restart and got the Navigate Left/Right click default instead: holding the button fired a click, never the long press. addNewButtons now copies the rider's saved pairs onto a connected button whose name they carry (as it already did for renamed Elite Square buttons), and exact duplicate pairs are dropped on load so the keymap stops growing. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>