Fix stuck DualSense d-pad input over Bluetooth #254

Manually merged
github merged 1 commit from github-bot/gh-254 into gh-pr/254/base 2026-12-01 11:00:01 +00:00 AGit
Owner

@⁠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 UTC

Fixes #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 0aa445d produced 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's PadState and 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 logs bt=true and sends neutral d-pad input would be welcome.

**@⁠Yoshi-233** on GitHub · 2026-12-01 02:59 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/254) `Yoshi-233:fix/dualsense-bluetooth-reports` → `main` · +60 −22 · 1 files · 1 commits · merged 2026-12-01 10:56 UTC Fixes #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 0aa445d produced 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's `PadState` and 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 logs `bt=true` and sends neutral d-pad input would be welcome.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 03:01:50 +00:00
github-bot changed target branch from main to gh-pr/254/base 2026-12-01 10:59:59 +00:00
github manually merged commit b8a1183907 into gh-pr/254/base 2026-12-01 11:00:01 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.