Feature request: Port DualSense light bar, adaptive triggers & USB haptics from VIctory-xmem#273 (native Windows HID) #3350

Open
leonida/mandy
opened 2026-12-03 15:18:17 +00:00 by Loleta00 · 0 comments
Loleta00 commented 2026-12-03 15:18:17 +00:00

lobomfz/VIctory-xmem recently merged PR #273 (GPL-3.0-or-later, by k-qno1):
https://github.com/lobomfz/VIctory-xmem/pull/273

It hooks the title's pad effect handler and PadHaptics mixer submix to bring the PS5 build's DualSense features to the port:

  • Light bar colours (e.g. police lights)
  • Adaptive trigger effects (feedback, weapon, vibration, multi-position, slope)
  • USB haptics on channels 3 & 4 of the DualSense 4-channel audio endpoint via WASAPI shared mode

The upstream PR targets Linux/Wine using Z:\dev\hidrawN. For native Windows in d3d12/ (leonida-loader), replacing the hidraw transport with native Windows HID (SetupDi + hid.dll + CreateFileW/WriteFile, sized to HIDP_CAPS.OutputReportByteLength, keeping Z:\dev\hidrawN as a Wine fallback) works alongside the existing gameinput/hid.rs rumble path and WASAPI haptics.

Tested locally on Windows with a wired USB DualSense and it works great — sharing here in case a maintainer or contributor wants to port it upstream to mandy.

`lobomfz/VIctory-xmem` recently merged PR #273 (GPL-3.0-or-later, by `k-qno1`): https://github.com/lobomfz/VIctory-xmem/pull/273 It hooks the title's pad effect handler and `PadHaptics` mixer submix to bring the PS5 build's DualSense features to the port: - Light bar colours (e.g. police lights) - Adaptive trigger effects (feedback, weapon, vibration, multi-position, slope) - USB haptics on channels 3 & 4 of the DualSense 4-channel audio endpoint via WASAPI shared mode The upstream PR targets Linux/Wine using `Z:\dev\hidrawN`. For native Windows in `d3d12/` (`leonida-loader`), replacing the `hidraw` transport with native Windows HID (`SetupDi` + `hid.dll` + `CreateFileW`/`WriteFile`, sized to `HIDP_CAPS.OutputReportByteLength`, keeping `Z:\dev\hidrawN` as a Wine fallback) works alongside the existing `gameinput/hid.rs` rumble path and WASAPI haptics. Tested locally on Windows with a wired USB DualSense and it works great — sharing here in case a maintainer or contributor wants to port it upstream to `mandy`.
Sign in to join this conversation.
No assignees
No project
No milestone
Dependencies

No dependencies set

Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
leonida/mandy#3350
No description provided.