Rumble a USB DualSense read over HID #314
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/314"
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?
Imported from TaynanGT/Vice-Tay. Originally posted by nullexxx on 2026-11-27T15:44:46Z.
Rumble for a USB DualSense read over HID (
VICTORY_DUALSENSE). Before,set_rumble(slot 0x50) went only to XInput, which doesn't know a pad read over HID, so that pad got no rumble.The report layout and the firmware check are ported from Asem912's Marvisak/VIctory#2337 as developed in aleksesipenko/VIctory-RTX; both are co-authors.
What changes
dualsense/feedback.rs). The reports come from a writer thread, at most one per 10 ms per pad and only when the levels change. Writes are overlapped and cancelled after 100 ms. The reader clears the handle before closing it, so no write runs on a closed handle.VICTORY_DUALSENSE_RUMBLE=0leaves the motors alone.Not included
VICTORY_HAPTICS.Tested on hardware
DualSense over USB, firmware 0x0630, CachyOS + GE-Proton (viewtree), RTX 5080: rumble works. The log line
PlayStation gamepad: first rumble report sentshowsbytes=48 written=47. Unit tests cover the report, the write-length check and the firmware read.🤖 Generated with Claude Code
https://claude.ai/code/session_01SEGb52ApL88uPMf5GhSz8K
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T15:54:21Z.
@nullexxx USB rumble on the DualSense is confirmed by your run. Please keep the report-length handling narrow: a 48-byte report completing with 47 bytes under Wine is a specific case. DS4 and Bluetooth still need hardware coverage, and #276 already touches the same HID output path.
Imported from TaynanGT/Vice-Tay. Originally posted by nullexxx on 2026-11-27T16:06:12Z.
Thanks. I've narrowed it to what the hardware run covers:
VICTORY_HAPTICSpath. This title never sent a trigger level anyway.Squashed into one commit on the current
main.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T16:13:19Z.
@nullexxx The USB-only scope matches the hardware result. Accepting the full report and the 47-byte Proton completion covers the two known lengths, with other short writes kept visible. The two-motor path also gives us a clean test alongside #276's opt-in haptics.