[bug] Xbox Series pad: the four rumble channels are reachable through the native GameInput (trigger levels dropped, DeviceInfo announces 0x3) #377
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound#377
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@gbmrrr on GitHub · 2026-12-01 20:09 UTC · original
Xbox Series pad: the four rumble channels are reachable through the native GameInput
Build:
v3001-limpo— a branch ofv2026.11.30.03plus local commits, run on this PC. Everything below is measured here, not read from documentation. Line numbers in the code citations are from that branch, wheregameinput.rsis 6,027 lines; yours is 2,102, so the surrounding code differs even where the behaviour does not.Environment: Windows 11 Home, Ryzen 7 9800X3D, 32 GB RAM, RTX 5070 Ti (driver 621.40). Pad: Xbox Series X controller,
045E:0B12, over USB, driverXboxComposite.GameInput.dll424 KB +GameInputRedist.dll1.07 MB, both already inC:\Windows\System32.The short version
crates/victory-hle/src/modules/gameinput.rsin this repository drops the two trigger levels:with the comment
// shortcut: trigger motors are dropped (XInput has none). That is true ofXInputSetStateand false of Windows itself: the native GameInput v4 API (IGameInputDevice::SetRumbleState) drives all four motors on this very pad, over USB, with no third-party driver:DeviceInfohere also announcesrumble_motors: 0x3(LowFrequency | HighFrequency). That is the part I would ask you to weigh hardest, because it makes the measurement ambiguous rather than merely incomplete — see below.Why the
0x3matters more than the dropped levelsThe title's rumble routing depends on what the device says it has. A title that reads
DeviceInfobefore sending trigger rumble sees two channels and sends nothing — which is indistinguishable from a title that has no trigger rumble at all.I fell into exactly that trap: I measured 2,480 samples of trigger level zero and wrote down "this title never uses the triggers". With
0x3in place there was no way to tell the two explanations apart. Announcing0xfand logging which mask was announced is what makes the question answerable.What I changed, measured on this pad
The runtime now matches the pad by its real XInput user index, not by enumeration order. On this pad both GameInput and
Windows.Gaming.Inputinitially report no pad and the device callback arrives later, while the title asks forDeviceInfoduringGameInputCreate— so it waits once instead of answering early with two motors.DeviceInfogains an immutablefour_motor_info, handed out only when the driver actually has the pad and is going to drive it (impulse_triggers). Announcing four channels that nothing drives would be a worse lie than announcing two, so the mask follows capability, per slot.Source::rumbletakes[f32; 4]instead of(low, high). One writer per verified XInput slot, so the body never goes to XInput while the triggers go to GameInput. The fold into the high-frequency motor stays on the XInput path only — the one place where four levels really must become two — and its call site returns before it, so the fold cannot double up with the four-motor path.All of it is behind no switch: it engages when the native GameInput reports the pad.
What I have NOT proved, and it is the important half
That the physical trigger motors move.
rumble_mask = 0xfproves the API exposes four channels and that the pad matches; it does not prove a pulse. Nothing here confirms that this title asks for non-zero trigger levels.What the title does ask for, from 1,650
SetRumbleStatecalls in one logged run in the world:low, 99% non-zero onhigh, up to 51,199 and 63,999 of 65,535;So the honest statement is: the channels are now wired and announced, and whether the title uses them is one run with the log line that names all four levels.
A note on one thing that looks like a bug and is not
motor_powered_on(slot0x38) answersfalsefor every motor. I "fixed" it totruefor motors 0 and 1, then reverted my own change: force-feedback motors are wheels and flight sticks (forceFeedbackMotorCount), a pad's body motors aresupportedRumbleMotorsdriven throughSetRumbleState, slot0x50, which never consults that query. Every device here reportsforceFeedbackMotorCount = 0, so answeringtrueclaimed a motor the device info says does not exist. The two halves of the object disagreed, and the half that mattered for rumble was never involved — 18 instrumented runs confirmed the title calls only slot0x18.Also confirmed by the same runs: the title calls
device info(0x18), and neverforce feedback(0x30) orhaptics(0x48) — so thoseunsupported::<0x30>/unsupported::<0x48>entries are not what holds vibration back.A path this also opens: mods
The layer loads every DLL in
%LOCALAPPDATA%\victory\modsat start, before the device is made and before the title runs (play.rs:1014, called frommain.rs:640), and there is already a mod in production that works this way: MFG Unlocker wraps NVIDIA's frame generation from that folder on cards NVIDIA does not offer it for.That is an alternative route to the same result, and worth saying out loud: the input libraries are loaded with
GetProcAddress(XInputGetState/XInputSetStateatgameinput.rs:3706-3707, andLoadLibraryExWfor GameInput atrumble.rs:21), so whoever loads first owns the symbol. A mod can interceptXInputSetStateand drive all four motors itself, or advertiserumble_mask = 0xfunder its ownGameInput.dll, without either of us changing this file.I am not proposing that as a substitute for fixing it here — a mod in that position can never be sure the layer will not fold the triggers back into the high motor after it returns. But it is a second door, and the rumble system gets better for mods either way: today a mod can only replace what it intercepts, and the more of the four-channel handling lives in the layer, the less a mod has to reimplement to improve vibration.
What I can provide
The
rumble.rsmodule (257 lines,IGameInputDevicevtable offsets for the v4 redistributable), thefour_motor_info/impulse_triggerschanges, and the log line. It is written against the.30.03tree and would need porting to yourgameinput.rs, which is 2,102 lines against this branch's 6,027.Related: #324 (DualSense over USB) is a different failure — that one shows no rumble activity at all and no
SetRumbleStatecall in the log. This report is the Xbox pad, where the body motors are confirmed driven and only the trigger channels are absent.@gbmrrr on GitHub · 2026-12-02 00:03 UTC · original
Correction to the body above, before anyone acts on it
I wrote this issue and then re-checked the two claims below against
readmet3xt-lab/foxhoundnextat2c5a069c. Both need fixing, and the first one is exactly the kind of thing this issue asks you to be skeptical about.1. The comment I quoted does not exist in your file.
I wrote that
set_rumblediscards the triggers "with the comment// shortcut: trigger motors are dropped (XInput has none)". There is no such comment. What yourgameinput.rs:1141actually has is:The discard is silent —
..and no comment. Theshortcut:comments in that file are on other things (hub.index,register_reading). I attributed a justification to your code that your code does not make, and I should not have. The substantive point stands unchanged: the two trigger levels in the title's[f32; 4]are dropped andsource.rumble(slot, speed(low), speed(high))carries two values — but the reason is "only two values fitXInputSetState", which the code shows by construction, not a comment I should have put in your mouth.2. The
1,650and the percentages are not something I can reproduce.I wrote "from 1,650
SetRumbleStatecalls in one logged run in the world: 73 % non-zero onlow, 99 % non-zero onhigh". I cannot find that count or those percentages in my own notes from that run, and re-reading the log does not give me them:SetRumbleStateis not logged atINFO, so the count was from an instrumented run whose numbers I no longer have in front of me.What I can still stand behind, because it is written down with the run it came from: the body motors reach 51,199 (
low) and 63,999 (high) of 65,535, and the two trigger levels are zero across 2,480 samples. Withdraw the count and the percentages; keep the ranges and the zeros.What this changes about the ask
Nothing about the module. Both corrections are about the evidence around it, and the two conclusions that matter are unaffected:
..in the destructuring, and the two-value call that follows);DeviceInfoannouncing0x3(gameinput.rs:418) makes the title's silence ambiguous, which is the part I would still ask you to weigh hardest.If a correction in an issue about being careful with evidence is worth less than the issue, say so and I will close it.
@gbmrrr on GitHub · 2026-12-03 19:09 UTC · original
Closing this one myself, and saying why, because the answer changed rather than the bug.
The problem is still real in this repository:
gameinput.rs:1173readsand the two trigger levels are dropped there, exactly as the body of this issue says.
What changed is where the work went. The upstream this fork was tracking
(
trustno1-coder/VIctory-NVIDIA) went away with a DMCA takedown, and the author movedthe project to a renamed repository,
TrustNo1/Darner. That repository now handles thefour levels, and it does it differently from what I originally proposed:
So the triggers reach a pad there through the PlayStation path rather than through
IGameInputDevice::SetRumbleState, which is what this issue suggested. That is adifferent design, and it is the author's call to make, not mine to keep arguing here.
Two things worth keeping if anyone finds this issue while facing the same problem:
Series pad over USB, and it reports it:
rumble_mask = 0xf.DeviceInfoannouncing0x3is what makes a title's silence ambiguous, and that part of the report stillstands on its own.
levels were zero every time, while the body motors reached 51,199 and 63,999 of
65,535. So the missing channels cost nothing for this title today — the reason to
wire them is future titles and mods, not this one.
Closing because the fork I sent this from no longer exists and because the fix has
landed somewhere else. If this repository ever wants it, the Darner commit is the
reference.