Repository navigation
Conversation
catminou4
reviewed
Nov 25, 2026
catminou4
left a comment
Contributor
There was a problem hiding this comment.
Static review only: apps/victory input paths are Windows-only here; not tested on macOS. Big feature (+4157): DualSense/DualSense Edge over wired USB, Pico 2 W DS5Dongle bridge and Bluetooth, with haptics/adaptive triggers/gyro/touchpad/battery, config under [input.dualsense]. Suggest splitting the victory-core parts from the input driver for reviewability; needs Windows hardware validation with an actual DS5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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(Input: with no device, previous and next readings walk every device in time order #361) andVICTORY_KEYSpad merging (Input: apply VICTORY_KEYS to a connected host pad too #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).