gameinput: DualShock 4 pads read from HID beside XInput #210
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by YOGESH9139 on 2026-11-26T11:45:01Z.
Split 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
Imported from avatarmanz/VIctory-7900XTX. Originally posted by YOGESH9139 on 2026-11-26T12:51:40Z.
Closing: I'm stopping this work for now and taking the fork down. Thanks for the reviews.
Pull request closed