mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-12-01 02:02:33 +01:00
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>