Generic HID pads: rumble for Logitech RumblePad 2 / F510 / F710 (DirectInput mode) #4096
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4096
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4096"
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?
@uranuspluton on GitHub · 2026-11-30 16:00 UTC · original
uranuspluton:generic-pad-rumble→main· +230 −15 · 2 files · 1 commits · openWhat it changes
Generic HID pads had no rumble (
generic.rs: "These pads do not rumble"). Logitech's RumblePad 2 (046D:C218, also what the F510 reports in DirectInput mode) and Cordless RumblePad 2 (046D:C219, also the F710 in DirectInput mode) do have a known way to: a 7-byte output report, the one Linux'shid-lg2ff.csends (0x51 with the light motor at byte 2 and the heavy one at byte 4; 0xF3 stops them).generic.rs:rumble_reportbuilds that report (Windows' write is 8 bytes, report id 0 first);rumbleslists the two pads. A pad with a known report gets a "generic pad rumble" writer thread with its ownGENERIC_WRITEhandle, so the reader's blocking read is not touched and a slow write holds up only that thread. The writer sends each change of the speeds once (compared as bytes, so a title setting the same speeds every frame writes nothing), stops the motors when the pad is found (they keep the last speeds sent, even from an earlier run), and ends when the pad goes away.generic::rumble/generic::stop_rumble, wired whereplaystationalready is: the slot routing inrumbleandgameinput::stop_rumbleat exit.rumbles=true|false.How it was tested
cargo test -p victory-hle connected_generic_pads_rumble -- --ignored --nocaptureruns the heavy motor, then the light one, then stops them.cargo test -p victory-hle gameinputpassed (98 tests, two new ones on the report bytes; one ignored test that needs the pad, run by hand with the pad: ok).cargo clippy -p victory-hle --all-targets: nothing in the files touched.cargo xtask policy --stagedpassed.Checked for overlap
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.