input: DualSense and DualShock 4 support (HID input, adaptive triggers, light bar, haptics) #54
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!54
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-54"
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?
@Kal0s-design on GitHub · 2026-12-05 19:10 UTC · original
Kal0s-design:port/dualsense→main· +3390 −12 · 15 files · 2 commits · merged 2026-12-05 20:00 UTCFor #30. This brings over upstream ReVIctory's native DualSense and DualShock 4 support (b45d17f, author kept, with the module and HID authors it credits). Today only XInput pads reach the game, so a PlayStation pad does nothing without Steam Input or DS4Windows.
With it, pads XInput doesn't list are read over HID and fill the empty XInput slots, with rumble for Sony pads. VICTORY_DUALSENSE=1 (or -DualSense) also turns on the PS5 build's adaptive triggers, light bar, the R2 vehicle notch, the rumble curve and haptics through the pad's USB audio actuators, and VICTORY_DUALSHOCK=1 the light bar on a DualShock 4. Every hook checks the game's code before patching and stays off on a build it doesn't recognise, so with the switches off the only change is that an unlisted HID pad now works. The commit message has the Windows specifics (SetupAPI discovery, report sizes, the Bluetooth CRC position).
Porting notes. gameinput.rs had one overlapping hunk, where this takes upstream's split of the pad source into xinput() and hid(). The README hunks are left out because this fork's README is different. victory-loader gains a dependency on the workspace windows crate with a few audio and COM features for the haptics, no new crates. If #48 goes in first, crates/victory-loader/src/lib.rs will conflict in one spot, where both the new mod lines and the test lock should stay, which is how upstream has it.
Merged with current main and the test fixes from #48, victory-hle (267), victory-loader (126) and victory pass here, and clippy -D warnings reports nothing new. I have no PlayStation pad on this machine, so the pad behaviour itself is untested by me.
AI-assisted: yes
🤖 Generated with Claude Code
8573ed024ftofa192614f9