Input: add Windows DualSense / DualSense Edge support #2337
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2337
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2337"
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?
@Asem912 on GitHub · 2026-11-25 11:00 UTC · original
Asem912:feat/dualsense-windows→main· +4157 −446 · 18 files · 1 commits · openSummary
Adds native Windows HLE support for PlayStation 5 DualSense (
0x0CE6) and DualSense Edge (0x0DF2) controllers ingameinput.dll, supporting wired USB, Raspberry Pi Pico 2 WDS5Donglewireless bridges, and native Bluetooth (0x31enhanced reports) using existing workspace dependencies.Highlights
victory-hle::modules::gameinput::dualsense):UsagePage 0x01 / Usage 0x05withFILE_SHARE_READ | FILE_SHARE_WRITEso companion tools andDS5DongleWebHID configurators are never locked out.0x01/0x02and Bluetooth0x31(auto-reads Feature0x05to enter enhanced mode, validates0xA1/0xA2/0xA3seeded CRC-32).sensor_timestampliveness (1.5 s freeze timeout) so an idle/powered-off wireless pad behind a plugged-inDS5Donglecleanly falls back to keyboardWASDwithout stuck buttons, and re-fetches0x05/0x20on reconnect.0xF) and translates Xbox trigger rumble scalars into DualSense adaptive triggerVibration/Hybrid/Offmodes with ~100 Hz output rate limiting and immediate zero-stop flushes.0x20firmware version and setsCOMPATIBLE_VIBRATION2(valid_flag2bit 2) for firmware>= 0x0224, leaving audio volume bytes untouched forDS5Donglev0.8+ volume lock compatibility.audio_4ch/hybrid) blending rumble carriers with title-scopedVIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACKlow-pass audio while keeping Ch1/2 silent by default.IGameInputDevice::GetBatteryState(0x28) andIGameInput::RegisterSystemButtonCallback(0x50, short-press PS Guide,PS + Touchpadgyro recenter, ignoring>= 600 msholds for power-off / multi-device slot switching).PlayerSpaceYaw+Roll,AdsOrTouchdefault, anti-deadzone floor) onto right stick.HISTORYto512with analog sub-LSB jitter coalescing to preventREFERENCE_TOO_OLDon slow frames, while preserving cross-device time-orderednext_reading/previous_reading(#361) andVICTORY_KEYSpad merging (#197).VID_28DE/ ViGEm) while preserving mixed genuine Xbox + PS5 pads.lifecycle::end_title,Ctrl+C, panic, andvictory-loaderunhandled exceptions.victory-core,victory.example.toml,apps/victory):[input]and[input.dualsense]TOML sections andVICTORY_*env overrides.Verification
cargo clippy --workspace --all-targets --locked -- -D warnings(pass)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(pass)cargo test -p victory-hle --features diagnostics --locked -- modules::gameinput modules::lifecycle(32 passed; synthetic HID report fixtures +VICTORY_KEYS/ cross-device walk tests)cargo test -p victory-core -p victory -p victory-loader -p victory-pe -p victory-pipeline -p xtask --locked(all passed, includingconfig,crash, andxtaskasset-policy checks)DS5Donglehardware E2E on device (and fullcargo test --workspace --lockedoutside sandbox; in the sandboxed run, unrelatedvictory-gpudescriptor/memory tests failed).@Marvisak on GitHub · 2026-11-25 15:23 UTC · original · edited 2026-11-25 22:22 UTC
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main(conflicts inapps/victory/src/main.rsandcrates/victory-hle/src/modules/gameinput/mod.rs). It will be reviewed again once it is rebased.From the earlier needs-work note, still open: dependency changes need the maintainer's decision, evidence for the GameInput behaviour changes, no hardware testing yet, and the PR should be split into smaller changes with shorter docs.
Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.