Support USB DualShock 4 controllers #292

Manually merged
github merged 2 commits from github-bot/gh-292 into gh-pr/292/base 2026-11-27 14:25:23 +00:00 AGit
Owner

@⁠jdhirst on GitHub · 2026-11-27 13:53 UTC · original
jdhirst:fix/usb-dualshock4 → main · +100 −36 · 1 files · 2 commits · merged 2026-11-27 14:24 UTC

Add native USB input for the original and revised DualShock 4 through the existing PlayStation HID reader. Decode sticks, triggers and buttons without the DualSense calibration handshake.

Verification

  • Windows enumerates a USB DualShock 4 with product ID 09CC.
  • GameInput unit tests passed, including the DualShock 4 USB report regression.
**@⁠jdhirst** on GitHub · 2026-11-27 13:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/292) `jdhirst:fix/usb-dualshock4` → `main` · +100 −36 · 1 files · 2 commits · merged 2026-11-27 14:24 UTC Add native USB input for the original and revised DualShock 4 through the existing PlayStation HID reader. Decode sticks, triggers and buttons without the DualSense calibration handshake. Verification - Windows enumerates a USB DualShock 4 with product ID 09CC. - GameInput unit tests passed, including the DualShock 4 USB report regression.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 14:01:54 +00:00
Require gamepad input reports for DualShock 4 without depending on the DualSense feature handshake. Keep the existing DualSense checks and add a regression for empty feature reports.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 14:11 UTC · original · edited 2026-11-27 14:15 UTC

@⁠jdhirst The USB offsets match the DS4 report layout. I updated Reports::for_device in 7fd2a5b to accept input-only DS4 collections and keep the gamepad usage check. The regression covers zero-length features for DS4, the feature requirement for DualSense, and rejection of the keyboard collection.

**@⁠TaynanGT** on GitHub · 2026-11-27 14:11 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/292#issuecomment-7220457893) · edited 2026-11-27 14:15 UTC @⁠jdhirst The USB offsets match the DS4 report layout. I updated `Reports::for_device` in `7fd2a5b` to accept input-only DS4 collections and keep the gamepad usage check. The regression covers zero-length features for DS4, the feature requirement for DualSense, and rejection of the keyboard collection.
github-bot changed target branch from main to gh-pr/292/base 2026-11-27 14:25:22 +00:00
github manually merged commit 7fd2a5bf53 into gh-pr/292/base 2026-11-27 14:25:23 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.