Input: read PS5 DualSense pads directly over HID #420
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!420
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-420"
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?
@RenzoraEngine on GitHub · 2026-11-27 00:39 UTC · original
RenzoraEngine:dualsense-support→a-publier· +643 −14 · 5 files · 1 commits · open## What
PS5 DualSense and DualSense Edge pads are read straight from HID, so they work without Steam Input or DS4Windows turning them into XInput pads.
0x31reports. The short0x01form is still parsed until then.0x02over USB, and0x31with a CRC-32 over Bluetooth. It is only written when the motor speeds change.VICTORY_DUALSENSE=0turns it off, for hosts where Steam Input or DS4Windows already exposes the pad as XInput, where it would otherwise be seen twice.Also:
scripts\play.ps1 -SeriesSpasses--console series-s.No new dependencies. The change only enables the
Win32_Devices_HumanInterfaceDeviceandWin32_Devices_DeviceAndDriverInstallationfeatures of the existingwindows-sys.Testing
cargo test -p victory-hle --lib gameinput: 15 passed. Five of them are new, covering USB, Bluetooth full and short reports, skipped report kinds, and the rumble reports with their CRC.cargo test -p victory-hle real_dualsense -- --ignored --nocaptureagainst a DualSense on USB: reports read, sticks at rest within ±0.05 of center, rumble command sent.DualSense connected product=0ce6.cargo clippy -p victory-hle: no warnings in the changed code.@B0pol on GitHub · 2026-11-27 01:35 UTC · original
confirm it worked for me on linux (rumble not tested)
@MamaLeVrai on GitHub · 2026-11-27 02:22 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
aa8ac1c:cargo test --release -p victory-hle --lib167 passed, 0 failed, 3 ignored. No DualSense attached, so the HID path itself is not exercised.AI-assisted (Claude Code); no game data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.