[bug] Xbox Series pad: the four rumble channels are reachable through the native GameInput (trigger levels dropped, DeviceInfo announces 0x3) #377

Closed
opened 2026-12-01 20:09:19 +00:00 by github-bot · 2 comments
Owner

@⁠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 of v2026.11.30.03 plus 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, where gameinput.rs is 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, driver XboxComposite. GameInput.dll 424 KB + GameInputRedist.dll 1.07 MB, both already in C:\Windows\System32.

The short version

crates/victory-hle/src/modules/gameinput.rs in this repository drops the two trigger levels:

let [low, high, ..] = ...;   // left_trigger and right_trigger discarded

with the comment // shortcut: trigger motors are dropped (XInput has none). That is true of XInputSetState and 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:

GameInput v4: XInput slot zero, all four rumble motors on the first title query
rumble_mask = 0xf

DeviceInfo here also announces rumble_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 0x3 matters more than the dropped levels

The title's rumble routing depends on what the device says it has. A title that reads DeviceInfo before 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 0x3 in place there was no way to tell the two explanations apart. Announcing 0xf and 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.Input initially report no pad and the device callback arrives later, while the title asks for DeviceInfo during GameInputCreate — so it waits once instead of answering early with two motors.

DeviceInfo gains an immutable four_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::rumble takes [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 = 0xf proves 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 SetRumbleState calls in one logged run in the world:

  • 73% non-zero on low, 99% non-zero on high, up to 51,199 and 63,999 of 65,535;
  • the body motors are driven hard and modulated;
  • the two trigger levels observed so far are zero.

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 (slot 0x38) answers false for every motor. I "fixed" it to true for motors 0 and 1, then reverted my own change: force-feedback motors are wheels and flight sticks (forceFeedbackMotorCount), a pad's body motors are supportedRumbleMotors driven through SetRumbleState, slot 0x50, which never consults that query. Every device here reports forceFeedbackMotorCount = 0, so answering true claimed 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 slot 0x18.

Also confirmed by the same runs: the title calls device info (0x18), and never force feedback (0x30) or haptics (0x48) — so those unsupported::<0x30> / unsupported::<0x48> entries are not what holds vibration back.

A path this also opens: mods

The layer loads every DLL in %LOCALAPPDATA%\victory\mods at start, before the device is made and before the title runs (play.rs:1014, called from main.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 / XInputSetState at gameinput.rs:3706-3707, and LoadLibraryExW for GameInput at rumble.rs:21), so whoever loads first owns the symbol. A mod can intercept XInputSetState and drive all four motors itself, or advertise rumble_mask = 0xf under its own GameInput.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.rs module (257 lines, IGameInputDevice vtable offsets for the v4 redistributable), the four_motor_info / impulse_triggers changes, and the log line. It is written against the .30.03 tree and would need porting to your gameinput.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 SetRumbleState call 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-01 20:09 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/377) # Xbox Series pad: the four rumble channels are reachable through the native GameInput **Build:** `v3001-limpo` — a branch of `v2026.11.30.03` plus 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, where `gameinput.rs` is 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**, driver `XboxComposite`. `GameInput.dll` 424 KB + `GameInputRedist.dll` 1.07 MB, both already in `C:\Windows\System32`. ## The short version `crates/victory-hle/src/modules/gameinput.rs` in this repository drops the two trigger levels: ```rust let [low, high, ..] = ...; // left_trigger and right_trigger discarded ``` with the comment `// shortcut: trigger motors are dropped (XInput has none)`. That is true of `XInputSetState` and **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: ``` GameInput v4: XInput slot zero, all four rumble motors on the first title query rumble_mask = 0xf ``` `DeviceInfo` here also announces `rumble_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 `0x3` matters more than the dropped levels The title's rumble routing depends on what the device says it has. A title that reads `DeviceInfo` before 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 `0x3` in place there was no way to tell the two explanations apart. Announcing `0xf` and 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.Input` initially report no pad and the device callback arrives later, while the title asks for `DeviceInfo` during `GameInputCreate` — so it waits once instead of answering early with two motors. `DeviceInfo` gains an immutable `four_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::rumble` takes `[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 = 0xf` proves 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 `SetRumbleState` calls in one logged run in the world: - 73% non-zero on `low`, 99% non-zero on `high`, up to 51,199 and 63,999 of 65,535; - the body motors are driven hard and modulated; - the two trigger levels observed so far are **zero**. 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` (slot `0x38`) answers `false` for every motor. I "fixed" it to `true` for motors 0 and 1, then reverted my own change: force-feedback motors are wheels and flight sticks (`forceFeedbackMotorCount`), a pad's body motors are `supportedRumbleMotors` driven through `SetRumbleState`, slot `0x50`, which never consults that query. Every device here reports `forceFeedbackMotorCount = 0`, so answering `true` claimed 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 slot `0x18`. Also confirmed by the same runs: the title calls `device info` (`0x18`), and **never** `force feedback` (`0x30`) or `haptics` (`0x48`) — so those `unsupported::<0x30>` / `unsupported::<0x48>` entries are not what holds vibration back. ## A path this also opens: mods The layer loads every DLL in `%LOCALAPPDATA%\victory\mods` at start, before the device is made and before the title runs (`play.rs:1014`, called from `main.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` / `XInputSetState` at `gameinput.rs:3706-3707`, and `LoadLibraryExW` for GameInput at `rumble.rs:21`), so whoever loads first owns the symbol. A mod can intercept `XInputSetState` and drive all four motors itself, or advertise `rumble_mask = 0xf` under its own `GameInput.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.rs` module (257 lines, `IGameInputDevice` vtable offsets for the v4 redistributable), the `four_motor_info` / `impulse_triggers` changes, and the log line. It is written against the `.30.03` tree and would need porting to your `gameinput.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 `SetRumbleState` call in the log. This report is the Xbox pad, where the body motors are confirmed driven and only the trigger channels are absent.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:09:19 +00:00
Author
Owner

@⁠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/foxhound next at 2c5a069c. 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_rumble discards the triggers "with the comment // shortcut: trigger motors are dropped (XInput has none)". There is no such comment. What your gameinput.rs:1141 actually has is:

let [low, high, ..] = if params.is_null() {
    [0.0; 4]
} else {
    // SAFETY: checked non-null; four motor levels.
    unsafe { *params }
};
let speed = |level: f32| (level.clamp(0.0, 1.0) * f32::from(u16::MAX)) as u16;
let mut source = lock(&device.hub().source);

The discard is silent — .. and no comment. The shortcut: 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 and source.rumble(slot, speed(low), speed(high)) carries two values — but the reason is "only two values fit XInputSetState", which the code shows by construction, not a comment I should have put in your mouth.

2. The 1,650 and the percentages are not something I can reproduce.

I wrote "from 1,650 SetRumbleState calls in one logged run in the world: 73 % non-zero on low, 99 % non-zero on high". 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: SetRumbleState is not logged at INFO, 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:

  • dropping the triggers is real (.. in the destructuring, and the two-value call that follows);
  • DeviceInfo announcing 0x3 (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-02 00:03 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/377#issuecomment-7330091394) ## 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/foxhound` `next` at `2c5a069c`. 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_rumble` discards the triggers "with the comment `// shortcut: trigger motors are dropped (XInput has none)`". There is no such comment. What your `gameinput.rs:1141` actually has is: ```rust let [low, high, ..] = if params.is_null() { [0.0; 4] } else { // SAFETY: checked non-null; four motor levels. unsafe { *params } }; let speed = |level: f32| (level.clamp(0.0, 1.0) * f32::from(u16::MAX)) as u16; let mut source = lock(&device.hub().source); ``` The discard is silent — `..` and no comment. The `shortcut:` 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 and `source.rumble(slot, speed(low), speed(high))` carries two values — but the reason is "only two values fit `XInputSetState`", which the code shows by construction, not a comment I should have put in your mouth. **2. The `1,650` and the percentages are not something I can reproduce.** I wrote "from 1,650 `SetRumbleState` calls in one logged run in the world: 73 % non-zero on `low`, 99 % non-zero on `high`". 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: `SetRumbleState` is not logged at `INFO`, 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: - dropping the triggers is real (`..` in the destructuring, and the two-value call that follows); - `DeviceInfo` announcing `0x3` (`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.
Author
Owner

@⁠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:1173 reads

let [low, high, ..] = if params.is_null() { [0.0; 4] } else { unsafe { *params } };

and 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 moved
the project to a renamed repository, TrustNo1/Darner. That repository now handles the
four levels, and it does it differently from what I originally proposed:

// crates/darner-hle/src/modules/gameinput.rs:1805
let [low, high, left_trigger, right_trigger] = if params.is_null() { [0.0; 4] } else { unsafe { *params } };
#[cfg(windows)]
if playstation::enabled() {
    playstation::set_levels(left_trigger, right_trigger);
}

So the triggers reach a pad there through the PlayStation path rather than through
IGameInputDevice::SetRumbleState, which is what this issue suggested. That is a
different 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:

  1. On this PC the native GameInput v4 API does expose all four channels on an Xbox
    Series pad over USB, and it reports it: rumble_mask = 0xf. DeviceInfo announcing
    0x3 is what makes a title's silence ambiguous, and that part of the report still
    stands on its own.
  2. What the title actually asks for is body only. Across 2,480 samples the two trigger
    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.

**@⁠gbmrrr** on GitHub · 2026-12-03 19:09 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/377#issuecomment-7389229220) 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:1173` reads ```rust let [low, high, ..] = if params.is_null() { [0.0; 4] } else { unsafe { *params } }; ``` and 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 moved the project to a renamed repository, `TrustNo1/Darner`. That repository now handles the four levels, and it does it differently from what I originally proposed: ```rust // crates/darner-hle/src/modules/gameinput.rs:1805 let [low, high, left_trigger, right_trigger] = if params.is_null() { [0.0; 4] } else { unsafe { *params } }; #[cfg(windows)] if playstation::enabled() { playstation::set_levels(left_trigger, right_trigger); } ``` So the triggers reach a pad there through the PlayStation path rather than through `IGameInputDevice::SetRumbleState`, which is what this issue suggested. That is a different 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: 1. On this PC the native GameInput v4 API does expose all four channels on an Xbox Series pad over USB, and it reports it: `rumble_mask = 0xf`. `DeviceInfo` announcing `0x3` is what makes a title's silence ambiguous, and that part of the report still stands on its own. 2. What the title actually asks for is body only. Across 2,480 samples the two trigger 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.