DualSense over Bluetooth is detected as USB: d-pad Up stuck, buttons scrambled #173
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound#173
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@leonyarov on GitHub · 2026-11-30 20:00 UTC · original
Summary
A DualSense on Bluetooth gets
bt=falsefrom the raw-HID pad code (VICTORY_HID_PADS, PR #59). The pad is never switched to its full Bluetooth report. Its simple0x01report is then parsed with the USB layout. The sticks work, but every button and trigger is read from the wrong byte. The worst symptom is d-pad Up held all the time.Environment
7281175102054c:0ce6) on Bluetooth, no DS4Windows/HidHide running, Steam running but not handling the padVICTORY_HID_PADSat its default (on); no XInput pad connectedLog
Root cause
path.to_uppercase().contains("BTHENUM")never matches. On Windows, a Bluetooth pad's HID interface path is\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002054c_pid&...(the Bluetooth HID service UUID).BTHENUMappears only in the parent device's instance id. As a result, the feature read and the init output report are skipped, and the pad stays in simple mode.0x01 if data.len() >= 64is supposed to mean USB, but length can't tell the two apart. Windows returns every input report padded to the device'sInputReportByteLength, which is 78 for a Bluetooth DualSense. So the 10-byte Bluetooth simple report (id lx ly rx ry b0 b1 b2 l2 r2) passes the check and is read with USB offsets.bt=false, the USB output report0x02is sent to a Bluetooth pad, so there is no rumble.Raw reports read from the pad (read-only, before anything switched it):
After a
HidD_GetFeature(0x05)the same pad sends0x31, and the existing0x31branch reads it correctly:What the misread does (simple report read with USB offsets)
hat(0)= d-pad Up always held; squeezing L2 cycles d-pad directions and face buttonsSuggested fix
Also pass
btintoparse. Take the0x01USB branch only when!bt. On Bluetooth, read0x01as the simple report (sticks at 1..5, buttons at 5/6/7, L2/R2 at 8/9), or drop it until the0x31reports start. A unit test with a 78-byte, zero-padded Bluetooth0x01report would cover this. A DualShock 4 on Bluetooth probably goes through the same misdetection (not tested).Workarounds until fixed
0x05from the pad once after it connects (any tool that callsHidD_GetFeature). The pad then sends0x31until it is turned off, and Foxhound reads it correctly. Rumble still doesn't work over Bluetooth.