Files
swiftcontrol/test/utils/keymap
jonasbark 55c44cd8c6 Keep custom mappings on buttons that share a name with another controller (#516)
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>
2026-11-24 10:39:11 +01:00
..