Skip to content

android: Add 8BitDo Pro 2 (XInput Bluetooth)#1311

Merged
RobLoach merged 2 commits into
libretro:masterfrom
TideGear:8BitDo-Pro-2-XInput-Fix
May 20, 2026
Merged

android: Add 8BitDo Pro 2 (XInput Bluetooth)#1311
RobLoach merged 2 commits into
libretro:masterfrom
TideGear:8BitDo-Pro-2-XInput-Fix

Conversation

@TideGear
Copy link
Copy Markdown

@TideGear TideGear commented Apr 9, 2026

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.

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.
@TideGear TideGear marked this pull request as draft April 9, 2026 22:33
@TideGear TideGear marked this pull request as ready for review April 10, 2026 00:32
@TideGear
Copy link
Copy Markdown
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 RobLoach changed the title Create 8BitDo_Pro2_XInput_BT.cfg android: Add 8BitDo Pro 2 (XInput Bluetooth).cfg May 2, 2026
@RobLoach RobLoach changed the title android: Add 8BitDo Pro 2 (XInput Bluetooth).cfg android: Add 8BitDo Pro 2 (XInput Bluetooth) May 2, 2026
@RobLoach RobLoach merged commit 39898b1 into libretro:master May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants