gameinput: read PlayStation pads (DualSense, DualShock 4) over HID #94
No reviewers
Labels
No labels
accessibility
bug
crash
documentation
duplicate
enhancement
good first issue
graphics
help wanted
invalid
needs logs
performance
question
rdna2
rdna3
rdna4
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/eikkapine--victory-amd!94
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-94"
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?
@don-ous on GitHub · 2026-12-01 11:17 UTC · original
don-ous:dualsense-pad→main· +1223 −2 · 3 files · 23 commits · closed without mergingWhat
A PS5 DualSense (or a PS4 DualShock 4) does nothing in game today: XInput never lists Sony pads unless a remapper (Steam Input, DS4Windows) is running.
This reads them straight over HID:
VICTORY_DUALSENSE=0turns it off. It is on by default because it only changes anything for a player whose pad 1 is empty in XInput, that is, someone whose Sony pad did nothing before. If you prefer it opt-in per CONTRIBUTING, I will flip it.Where it comes from
gameinput/playstation.rsis the HID reader from trustno1-coder/VIctory-NVIDIA (v2026.11.30.02). Its DualShock 4 parsing and rumble reports were in turn ported from VIscosity. Both are GPL-3.0 like this repo, and the file header keeps the credit.The only changes on this side:
Host::pad(sony_pad());windows-sysfeatures (Win32_Devices_HumanInterfaceDevice,Win32_Devices_DeviceAndDriverInstallation);Not wired yet
rumble_report/host::rumble.slots.The code is there, kept behind
#[allow(dead_code)]so this PR stays small. I can follow up with them if you want them.Tested
cargo test -p victory-hle playstationgives 14 passed, 1 ignored.🤖 Generated with Claude Code
Pull request closed