GameInput: VICTORY_TRIGGER_MOTORS doc contradicts code (claimed on unless =0, code requires =1) #4562

Closed
opened 2026-11-30 22:30:10 +00:00 by github-bot · 2 comments
Owner

@⁠gbmrrr on GitHub · 2026-11-30 22:26 UTC · original

Summary

The mod triggers docstring claimed VICTORY_TRIGGER_MOTORS was "on unless =0" while asked() requires ==""1". On an Xbox Series X over USB (VID_045E PID_0B12, XboxComposite driver), Gamepad::Gamepads() returns an empty list — the driver publishes no WinRT game controller — so this path can never fire on that pad regardless of the switch.

Fix (already in local commit e0f6a423)

Doc now says:

Off unless VICTORY_TRIGGER_MOTORS=1, and it will stay that way: measured on an Xbox Series X over USB [...], Gamepad::Gamepads() returns an empty list — the driver publishes no WinRT game controller — so this path can never fire on that pad. Twelve other routes were measured and closed too; docs/CONTROLE-RUMBLE.md has the table.

The code stays for a pad on another transport where the enumeration differs. What the layer does instead: the triggers' levels are folded into the high-frequency motor in set_rumble, which is what Microsoft's own SetRumbleState documents for a pad without trigger motors.

Impact

Anyone reading the doc would expect trigger motors to work by default; they don't and can't on the primary target hardware. The doc now matches the code and explains why.

**@⁠gbmrrr** on GitHub · 2026-11-30 22:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4561) ## Summary The `mod triggers` docstring claimed `VICTORY_TRIGGER_MOTORS` was "on unless =0" while `asked()` requires `==""1"`. On an Xbox Series X over USB (VID_045E PID_0B12, `XboxComposite` driver), `Gamepad::Gamepads()` returns an empty list — the driver publishes no WinRT game controller — so this path can never fire on that pad regardless of the switch. ## Fix (already in local commit e0f6a423) Doc now says: > **Off unless `VICTORY_TRIGGER_MOTORS=1`**, and it will stay that way: measured on an Xbox Series X over USB [...], `Gamepad::Gamepads()` returns an empty list — the driver publishes no WinRT game controller — so this path can never fire on that pad. Twelve other routes were measured and closed too; `docs/CONTROLE-RUMBLE.md` has the table. The code stays for a pad on another transport where the enumeration differs. What the layer does instead: the triggers' levels are folded into the high-frequency motor in `set_rumble`, which is what Microsoft's own `SetRumbleState` documents for a pad without trigger motors. ## Impact Anyone reading the doc would expect trigger motors to work by default; they don't and can't on the primary target hardware. The doc now matches the code and explains why.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 22:30:10 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 22:26 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 22:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4561#issuecomment-7293853565) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠gbmrrr on GitHub · 2026-11-30 23:12 UTC · original

Closing as wrong — this is not your code.

mod triggers and VICTORY_TRIGGER_MOTORS do not exist in v2026.11.30.03. They were introduced by our fork in local commit 70a9032e ("GameInput: drive the trigger motors through Windows.Gaming.Input"). The doc/code contradiction I reported is entirely on our side, in code we wrote, and is already fixed in our tree.

Nothing actionable for you here. I should have checked whether the symbol existed upstream before filing.

**@⁠gbmrrr** on GitHub · 2026-11-30 23:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4561#issuecomment-7294838330) Closing as **wrong** — this is not your code. `mod triggers` and `VICTORY_TRIGGER_MOTORS` do not exist in `v2026.11.30.03`. They were introduced by our fork in local commit `70a9032e` ("GameInput: drive the trigger motors through Windows.Gaming.Input"). The doc/code contradiction I reported is entirely on our side, in code we wrote, and is already fixed in our tree. Nothing actionable for you here. I should have checked whether the symbol existed upstream before filing.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#4562
No description provided.