Files
swiftcontrol/lib/utils/actions
Jonas Acker 3f43df8b9e fix(android): HID keyboard keys work again from a device listed as a gamepad
Since keys from a listed gamepad are routed to its GamepadDevice (so its
buttons work behind the trainer app), every key from a Bluetooth HID
keyboard or remote that Android also lists as a gamepad went there too.
The gamepad mapping only knows KEYCODE_BUTTON_* and KEYCODE_DPAD_*, so
volume, media, enter, page and letter keys were dropped without a trace
and never learned.

handleAccessibilityKey now reports whether the key was a gamepad button.
If not, the key takes the HID keyboard path as before, on a HID device of
its own rather than the same-named gamepad. Mapped gamepad buttons still go
to the gamepad device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:04:47 +02:00
..