v2026.11.29.01: CONTROLS=GAMEPAD never presents a gamepad (GameInput devices=0), so the title stops at the account/title screen; CONTROLS=KEYBOARD ignores bindings.ini #2844

Open
opened 2026-11-29 18:06:50 +00:00 by github-bot · 2 comments
Owner

@⁠shigechangge on GitHub · 2026-11-29 18:02 UTC · original

v2026.11.29.01: CONTROLS=GAMEPAD never presents a gamepad (GameInput devices=0), so the title stops at the account/title screen; CONTROLS=KEYBOARD ignores bindings.ini

victory-nvidia-play-20261129-173933-1992.log
victory-nvidia-play-20261129-174534-8.log
victory-settings.txt

Summary

On v2026.11.29.01 with mouse and keyboard enabled, neither of the new CONTROLS modes behaves like the previous release's mouse/keyboard → gamepad translation:

  • CONTROLS=gamepad — the game starts and renders the account/title screen at a stable 60 fps, but it never receives any gamepad input. Enter, Shift, Space and mouse clicks do nothing; it stays on the first screen. The log shows the pad enumeration coming back with 0 devices. The process stays alive and healthy (GPU ~5 %), it is simply waiting for a controller that never appears.
  • CONTROLS=keyboard — the game can be entered, but driving uses the title's raw keyboard controls (W throttle, S/A/D as keyboard vehicle controls, left mouse button does nothing), instead of the bound layout (MoveLeft/Right = A/D on the left stick, RT = Mouse1). The HUD key prompts are drawn from the "stock Victory bindings" and do not match the effective keys.

With the previous release v2026.11.28.03 and the same bindings.ini, the expected behaviour works: A/D steer with the left stick, LMB = RT throttle, RMB = LT brake (gamepad-style driving), and the title shows gamepad prompts.

Environment

  • GPU: NVIDIA GeForce RTX 5060 Ti 16 GB — driver 621.40 / 32.0.16.2140
  • CPU: Intel i7-13700KF, 48 GB RAM
  • OS: Windows 11 26100 (10.0.26100)
  • Title: Xbox Series build v1.0.2.1, stock game_scarlett_master.exe
  • victory.exe: v2026.11.29.01 — SHA-256 0d3dae51870bad44aa529c9fddd762a513d677ff8d08147134968ba7ed67dffd
  • Launch: F1 menu (play); settings saved to %LOCALAPPDATA%\victory\victory-settings.txt
  • Mouse and keyboard: VICTORY_MNK=1
  • Bindings: stock bindings.ini (unchanged defaults)

Relevant settings:

VICTORY_MNK=1
VICTORY_CONTROLS=gamepad      # also tried: keyboard

Stock bindings.ini used for both runs:

Sensitivity = 0.135
MoveUp = W
MoveDown = S
MoveLeft = A
MoveRight = D
RT = Mouse1
LT = Mouse2
A = Shift, Enter
B = R, Backspace
X = Space
Y = F
LB = Tab
RB = Q
LS = Ctrl
RS = Mouse3
Menu = Esc
View = V
DpadUp = Up
DpadDown = Down
DpadLeft = Left
DpadRight = Right

Steps to reproduce

  1. Put victory.exe v2026.11.29.01 beside game_scarlett_master.exe.
  2. In game: F1 → MOUSE AND KEYBOARD = ON, CONTROLS = GAMEPAD, save, close the game.
  3. Start the game again and wait for the account/title screen (the one that asks to press A).
  4. Press Enter, Shift, Space, left/right mouse buttons, and the stick-bound keys (W/A/S/D).

Result: nothing happens; the game stays on that screen indefinitely.

  1. Repeat with F1 → CONTROLS = KEYBOARD and restart.
    Result: the game can be entered, but in a vehicle W/S/A/D drive the car as raw keyboard controls and LMB does not accelerate.

Evidence (gamepad run)

%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-174534-8.log:

INFO victory_hle::modules::gameinput: GameInputCreate
INFO victory_hle::modules::gameinput: input device device=4 connected=true
INFO victory_hle::modules::gameinput: input device callback kind=0x40000 enumeration=2 devices=1
INFO victory_hle::modules::gameinput: registered raw mouse input on title window
INFO victory_hle::modules::gameinput: input device callback kind=0x10 enumeration=2 devices=0

The window title from the same run (F3 stats also shown there):

Americas | VIctory-NVIDIA 60 fps 16.7 ms/frame 8 draws/frame

i.e. the title UI is rendered at 60 fps with 8 draws/frame, GPU ~5 %, no input is accepted. The process is not hung and there is no crash.

Evidence (keyboard run)

victory-nvidia-play-20261129-173933-1992.log — the game is entered; in a vehicle the title reacts to raw keyboard input (WASD), and LMB does nothing (not RT). The on-screen key prompts shown by the new prompts feature do not correspond to the effective keys.

Expected

  • CONTROLS=GAMEPAD should present a gamepad to the title (or otherwise deliver the translated pad input) so that the mouse/keyboard translation in bindings.ini works as in v2026.11.28.03: A/D = left-stick steering, LMB = RT throttle, RMB = LT brake.
  • CONTROLS=KEYBOARD should either honour the bound keys or make the HUD prompts show the actual effective layout.

Regression / workaround

Replacing victory.exe with the previous release v2026.11.28.03 (SHA-256 1039c044bbb67760323f3abff7d17b924997c82c09a3ed5834eedb2e11528d8f) immediately restores the expected input behaviour with the same bindings.ini and settings. No other setting changed between the two tests.

Attachments

  • victory-nvidia-play-20261129-174534-8.log (gamepad mode)
  • victory-nvidia-play-20261129-173933-1992.log (keyboard mode)
  • victory-settings.txt
**@⁠shigechangge** on GitHub · 2026-11-29 18:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2844) # v2026.11.29.01: `CONTROLS=GAMEPAD` never presents a gamepad (GameInput `devices=0`), so the title stops at the account/title screen; `CONTROLS=KEYBOARD` ignores `bindings.ini` [victory-nvidia-play-20261129-173933-1992.log](https://github.com/user-attachments/files/35579215/victory-nvidia-play-20261129-173933-1992.log) [victory-nvidia-play-20261129-174534-8.log](https://github.com/user-attachments/files/35579216/victory-nvidia-play-20261129-174534-8.log) [victory-settings.txt](https://github.com/user-attachments/files/35579214/victory-settings.txt) ## Summary On **v2026.11.29.01** with mouse and keyboard enabled, neither of the new `CONTROLS` modes behaves like the previous release's mouse/keyboard → gamepad translation: * **`CONTROLS=gamepad`** — the game starts and renders the account/title screen at a stable 60 fps, but it never receives any gamepad input. Enter, Shift, Space and mouse clicks do nothing; it stays on the first screen. The log shows the pad enumeration coming back with **0 devices**. The process stays alive and healthy (GPU ~5 %), it is simply waiting for a controller that never appears. * **`CONTROLS=keyboard`** — the game can be entered, but **driving uses the title's raw keyboard controls** (W throttle, S/A/D as keyboard vehicle controls, left mouse button does nothing), instead of the bound layout (`MoveLeft/Right = A/D` on the left stick, `RT = Mouse1`). The HUD key prompts are drawn from the *"stock Victory bindings"* and do not match the effective keys. With the previous release **v2026.11.28.03** and the same `bindings.ini`, the expected behaviour works: **A/D steer with the left stick, LMB = RT throttle, RMB = LT brake** (gamepad-style driving), and the title shows gamepad prompts. ## Environment * **GPU:** NVIDIA GeForce RTX 5060 Ti 16 GB — driver 621.40 / 32.0.16.2140 * **CPU:** Intel i7-13700KF, 48 GB RAM * **OS:** Windows 11 26100 (10.0.26100) * **Title:** Xbox Series build v1.0.2.1, stock `game_scarlett_master.exe` * **victory.exe:** v2026.11.29.01 — SHA-256 `0d3dae51870bad44aa529c9fddd762a513d677ff8d08147134968ba7ed67dffd` * **Launch:** F1 menu (play); settings saved to `%LOCALAPPDATA%\victory\victory-settings.txt` * **Mouse and keyboard:** `VICTORY_MNK=1` * **Bindings:** stock `bindings.ini` (unchanged defaults) Relevant settings: ```ini VICTORY_MNK=1 VICTORY_CONTROLS=gamepad # also tried: keyboard ``` Stock `bindings.ini` used for both runs: ```ini Sensitivity = 0.135 MoveUp = W MoveDown = S MoveLeft = A MoveRight = D RT = Mouse1 LT = Mouse2 A = Shift, Enter B = R, Backspace X = Space Y = F LB = Tab RB = Q LS = Ctrl RS = Mouse3 Menu = Esc View = V DpadUp = Up DpadDown = Down DpadLeft = Left DpadRight = Right ``` ## Steps to reproduce 1. Put `victory.exe` v2026.11.29.01 beside `game_scarlett_master.exe`. 2. In game: **F1 → MOUSE AND KEYBOARD = ON**, **CONTROLS = GAMEPAD**, save, close the game. 3. Start the game again and wait for the account/title screen (the one that asks to press **A**). 4. Press Enter, Shift, Space, left/right mouse buttons, and the stick-bound keys (W/A/S/D). **Result:** nothing happens; the game stays on that screen indefinitely. 5. Repeat with **F1 → CONTROLS = KEYBOARD** and restart. **Result:** the game can be entered, but in a vehicle W/S/A/D drive the car as raw keyboard controls and LMB does not accelerate. ## Evidence (gamepad run) `%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-174534-8.log`: ```text INFO victory_hle::modules::gameinput: GameInputCreate INFO victory_hle::modules::gameinput: input device device=4 connected=true INFO victory_hle::modules::gameinput: input device callback kind=0x40000 enumeration=2 devices=1 INFO victory_hle::modules::gameinput: registered raw mouse input on title window INFO victory_hle::modules::gameinput: input device callback kind=0x10 enumeration=2 devices=0 ``` The window title from the same run (F3 stats also shown there): ```text Americas | VIctory-NVIDIA 60 fps 16.7 ms/frame 8 draws/frame ``` i.e. the title UI is rendered at 60 fps with 8 draws/frame, GPU ~5 %, no input is accepted. The process is not hung and there is no crash. ## Evidence (keyboard run) `victory-nvidia-play-20261129-173933-1992.log` — the game is entered; in a vehicle the title reacts to raw keyboard input (WASD), and LMB does nothing (not `RT`). The on-screen key prompts shown by the new prompts feature do not correspond to the effective keys. ## Expected * **`CONTROLS=GAMEPAD`** should present a gamepad to the title (or otherwise deliver the translated pad input) so that the mouse/keyboard translation in `bindings.ini` works as in v2026.11.28.03: A/D = left-stick steering, LMB = RT throttle, RMB = LT brake. * **`CONTROLS=KEYBOARD`** should either honour the bound keys or make the HUD prompts show the actual effective layout. ## Regression / workaround Replacing `victory.exe` with the previous release **v2026.11.28.03** (SHA-256 `1039c044bbb67760323f3abff7d17b924997c82c09a3ed5834eedb2e11528d8f`) immediately restores the expected input behaviour with the same `bindings.ini` and settings. No other setting changed between the two tests. ## Attachments * `victory-nvidia-play-20261129-174534-8.log` (gamepad mode) * `victory-nvidia-play-20261129-173933-1992.log` (keyboard mode) * `victory-settings.txt`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:06:50 +00:00
Author
Owner

@⁠dheerajc8073 on GitHub · 2026-11-29 18:16 UTC · original

Root Cause Analysis & Fix

The regression in v2026.11.29.01 stems from commits cb696070 and 829188e9 introducing unconditional pads_only guards in crates/victory-hle/src/modules/gameinput.rs:

1. Host::keys() drops all keystrokes when CONTROLS=gamepad

In crates/victory-hle/src/modules/gameinput.rs:

fn keys(&mut self) -> Vec<KeyState> {
    // The F1 settings menu takes the keyboard while it is shown.
    if matches!(controls(), Controls::Gamepad | Controls::DualSense)
        || victory_gpu::SETTINGS_MENU_OPEN.load(std::sync::atomic::Ordering::Relaxed)
    {
        return Vec::new();
    }

When CONTROLS=gamepad, Host::keys() unconditionally short-circuits and returns Vec::new(), completely bypassing GetAsyncKeyState polling. Because the keyboard-to-gamepad translation layer (fallback_for_seat(&keys, overlay.seat)) depends on Host::keys() to synthesize the stand-in Value::Pad (mapping WASD to left stick and Enter/Shift to A button), it receives an empty key vector and produces no gamepad input.

Fix: Only short-circuit when MOUSE AND KEYBOARD is NOT enabled:

if (matches!(controls(), Controls::Gamepad | Controls::DualSense) && !mnk_on())
    || victory_gpu::SETTINGS_MENU_OPEN.load(std::sync::atomic::Ordering::Relaxed)
{
    return Vec::new();
}

2. State::poll() strips mouse input before stick aiming

In State::poll():

let pads_only = pads_only();
let mouse = mouse.filter(|_| !pads_only);
let look = self.look.pad(mouse, &LOOK);

When pads_only is true (Controls::Gamepad or Controls::DualSense), mouse is unconditionally filtered to None, discarding mouse motion before self.look.pad(mouse, &LOOK) can calculate right-stick camera deflection and LMB/RMB trigger presses.

Fix: Allow mouse sampling when mnk_on() is true:

let mouse = mouse.filter(|_| !pads_only || mnk_on());

3. Window message dropping in lifecycle.rs

In crates/victory-hle/src/modules/lifecycle.rs:

if super::gameinput::pads_only() && keys_or_mouse(message) {
    return unsafe { wm::DefWindowProcW(hwnd, message, wparam, lparam) };
}

This correctly prevents the title's window procedure from detecting raw keystrokes (which would otherwise trigger keyboard prompts), but combined with (1) and (2) above, it previously isolated the emulator from input entirely. With (1) and (2) restored to read via GetAsyncKeyState and raw mouse input, CONTROLS=gamepad properly delivers virtual gamepad input via bindings.ini while preserving controller HUD prompts.

**@⁠dheerajc8073** on GitHub · 2026-11-29 18:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2844#issuecomment-7260347591) ## Root Cause Analysis & Fix The regression in **v2026.11.29.01** stems from commits `cb696070` and `829188e9` introducing unconditional `pads_only` guards in `crates/victory-hle/src/modules/gameinput.rs`: ### 1. `Host::keys()` drops all keystrokes when `CONTROLS=gamepad` In `crates/victory-hle/src/modules/gameinput.rs`: ```rust fn keys(&mut self) -> Vec<KeyState> { // The F1 settings menu takes the keyboard while it is shown. if matches!(controls(), Controls::Gamepad | Controls::DualSense) || victory_gpu::SETTINGS_MENU_OPEN.load(std::sync::atomic::Ordering::Relaxed) { return Vec::new(); } ``` When `CONTROLS=gamepad`, `Host::keys()` unconditionally short-circuits and returns `Vec::new()`, completely bypassing `GetAsyncKeyState` polling. Because the keyboard-to-gamepad translation layer (`fallback_for_seat(&keys, overlay.seat)`) depends on `Host::keys()` to synthesize the stand-in `Value::Pad` (mapping WASD to left stick and Enter/Shift to A button), it receives an empty key vector and produces no gamepad input. **Fix:** Only short-circuit when MOUSE AND KEYBOARD is NOT enabled: ```rust if (matches!(controls(), Controls::Gamepad | Controls::DualSense) && !mnk_on()) || victory_gpu::SETTINGS_MENU_OPEN.load(std::sync::atomic::Ordering::Relaxed) { return Vec::new(); } ``` --- ### 2. `State::poll()` strips mouse input before stick aiming In `State::poll()`: ```rust let pads_only = pads_only(); let mouse = mouse.filter(|_| !pads_only); let look = self.look.pad(mouse, &LOOK); ``` When `pads_only` is true (`Controls::Gamepad` or `Controls::DualSense`), `mouse` is unconditionally filtered to `None`, discarding mouse motion before `self.look.pad(mouse, &LOOK)` can calculate right-stick camera deflection and LMB/RMB trigger presses. **Fix:** Allow mouse sampling when `mnk_on()` is true: ```rust let mouse = mouse.filter(|_| !pads_only || mnk_on()); ``` --- ### 3. Window message dropping in `lifecycle.rs` In `crates/victory-hle/src/modules/lifecycle.rs`: ```rust if super::gameinput::pads_only() && keys_or_mouse(message) { return unsafe { wm::DefWindowProcW(hwnd, message, wparam, lparam) }; } ``` This correctly prevents the title's window procedure from detecting raw keystrokes (which would otherwise trigger keyboard prompts), but combined with (1) and (2) above, it previously isolated the emulator from input entirely. With (1) and (2) restored to read via `GetAsyncKeyState` and raw mouse input, `CONTROLS=gamepad` properly delivers virtual gamepad input via `bindings.ini` while preserving controller HUD prompts.
Author
Owner

@⁠dheerajc8073 on GitHub · 2026-11-29 18:35 UTC · original

Opened PR #2894 fixing the physical key starvation in \Host::keys()\ and preserving mouse translation into \self.look.pad()\ while keeping controller HUD prompts intact under \CONTROLS=gamepad.

**@⁠dheerajc8073** on GitHub · 2026-11-29 18:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2844#issuecomment-7260606696) Opened PR #2894 fixing the physical key starvation in \Host::keys()\ and preserving mouse translation into \self.look.pad()\ while keeping controller HUD prompts intact under \CONTROLS=gamepad\.
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#2844
No description provided.