Fix stuck DualSense d-pad input over Bluetooth #254
No reviewers
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!254
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-254"
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?
@Yoshi-233 on GitHub · 2026-12-01 02:59 UTC · original
Yoshi-233:fix/dualsense-bluetooth-reports→main· +60 −22 · 1 files · 1 commits · merged 2026-12-01 10:56 UTCFixes #173. Thanks to @leonyarov for the device path and the before/after report IDs.
On a Bluetooth DualSense, Windows can present a 10-byte simple input report padded to 78 bytes. The old reader selected its USB layout by length. Replaying the neutral sample from #173 on main
0aa445dproduced button mask 0x40 (d-pad Up) with neither trigger pressed. Switching the layout based on the transport gives button mask zero and both triggers at rest.Recognize the Bluetooth HID service UUID as well as BTHENUM. Pass that result to the reader so it decodes simple Bluetooth input before or without the switch to full reports. This also selects the existing Bluetooth initialization and rumble paths. The tests cover short and padded simple input, USB and CRC-checked full reports.
I reran the 13 HID module tests after rebasing onto
297f58a. All passed on Linux using the actual parser and the parent module'sPadStateand button constants in an isolated rustc test harness. The new neutral-report check failed against the original parser. The Windows target type-check of victory-hle including tests passed, as did the staged asset check. The full native Linux crate test was blocked in victory-loader on Windows-only code. I haven't tested pairing or rumble with a physical controller. A Windows check that the pad now logsbt=trueand sends neutral d-pad input would be welcome.