Input: add Windows DualSense / DualSense Edge support #1517
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!1517
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1517/head"
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-24 18:41 UTC · original
Asem912:feat/dualsense-windows→main· +0 −0 · 0 files · 0 commits · closed without mergingSummary
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) with zero new external 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.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 --workspace --locked(all unit/integration +xtaskasset-policy tests pass using synthetic HID report fixtures; physical DualSense /DS5Donglehardware E2E not yet tested on device)@pfhandler on GitHub · 2026-11-24 20:51 UTC · original
Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):
VICTORY_NO_HOST_PAD=1— a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad letsVICTORY_KEYSdrive the title again.VICTORY_MODE=1920x1080— the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.
@Marvisak on GitHub · 2026-11-25 01:30 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:README.md,crates/victory-core/src/config.rs,crates/victory-hle/Cargo.toml,crates/victory-hle/src/modules/gameinput/mod.rs,crates/victory-hle/src/modules/lifecycle.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
Pull request closed