gameinput: DualShock 4 pads read from HID beside XInput #210
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!210
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-210"
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?
@YOGESH9139 on GitHub · 2026-11-26 11:45 UTC · original
YOGESH9139:pr/dualshock4→main· +358 −4 · 3 files · 1 commits · closed without mergingSplit out of #134, as asked: only the DualShock 4 part.
What it does. DualShock 4 pads (Sony 054C: 05C4, 09CC, 0BA0, 0BA1), and pads that report themselves as one, are read from HID beside XInput, so they work without DS4Windows or Steam Input. Found with a cheap pad that shows up as a DS4 and gave the title no input at all.
crates/victory-hle/src/modules/gameinput/dualshock.rs: SetupDi enumeration of HID devices, one reader thread per pad (blockingReadFile), a rescan every 2 s for pads plugged in later. USB report0x01and Bluetooth report0x11are both parsed.gameinput.rs: a slot's state is XInput merged with the nth DS4, so an XInput pad in the same slot still works.VICTORY_DUALSHOCK=0turns it off.Cargo.toml: twowindows-sysfeatures (Win32_Devices_DeviceAndDriverInstallation,Win32_Devices_HumanInterfaceDevice).7 unit tests for the report parser. Rebased on
0dec5dc;cargo checkand the tests pass. Tested in the title's menus and in the world on Windows 11.🤖 Generated with Claude Code
@YOGESH9139 on GitHub · 2026-11-26 12:51 UTC · original
Closing: I'm stopping this work for now and taking the fork down. Thanks for the reviews.
Pull request closed