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

Open
opened 2026-12-03 15:18:17 +00:00 by Loleta00 · 0 comments
Loleta00 commented 2026-12-03 15:18:17 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Loleta00 on 2026-12-03T15:18:17Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6771861200 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3350). Originally posted by [Loleta00](https://github.com/Loleta00) on 2026-12-03T15:18:17Z. --- `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 labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy#3350
No description provided.