android: Add 8BitDo Pro 2 (XInput Bluetooth)#1311
Merged
Merged
Conversation
The 8BitDo Pro 2 in XInput BT mode (mode switch set to X) spoofs
Microsoft VID 0x045E / PID 0x02E0, identical to the Xbox One Wireless
Controller. RetroArch matches the existing Xbox One profile on VID+PID
(score 60), which maps Menu to BUTTON_R1 (103) — correct for the real
Xbox One's proprietary BT protocol, but wrong for 8BitDo which uses
HID-over-BT and sends BUTTON_START (108) for that button, causing Start
to be unresponsive.
This profile matches on device name ("8BitDo Pro 2", the BT advertised
name) in addition to VID+PID for a total score of 90, taking priority
over the Xbox One profile. The only mapping difference is
input_start_btn = "108" instead of "103". All other bindings are
identical to the Xbox One profile since 8BitDo faithfully emulates the
Xbox One HID report layout for every other button.
Author
|
Also worth mentioning: controller vibration is now supported with BT XInput controllers in Android RA, DInput 8BitDo doesn't seem to be able to do vibration, necessitating the above. |
RobLoach
approved these changes
May 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 8BitDo Pro 2 in XInput BT mode (mode switch set to X) spoofs
Microsoft VID 0x045E / PID 0x02E0, identical to the Xbox One Wireless
Controller. RetroArch matches the existing Xbox One profile on VID+PID
alone (score 60), since the BT advertised name "8BitDo Pro 2" differs
from the Xbox One profile's input_device "Xbox Wireless Controller".
This causes incorrect button mapping throughout: the Xbox One profile
expects Microsoft's proprietary BT protocol keycodes, which differ from
the standard HID-over-BT keycodes 8BitDo actually sends for nearly every
button except A and B. Verified via pad tester.
This profile matches on device name in addition to VID+PID for a total
score of 90, taking priority over the Xbox One profile, and uses the
correct standard HID keycodes throughout.