Input: apply VICTORY_KEYS to a connected host pad too #197
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!197
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/197/head"
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?
@Alpaca-exe on GitHub · 2026-11-24 01:19 UTC · original
Alpaca-exe:fix/victory-keys-with-connected-pad→main· +104 −11 · 1 files · 1 commits · merged 2026-11-25 00:19 UTCProblem
In crates/victory-hle/src/modules/gameinput.rs, VICTORY_KEYS (enabled in diagnostics builds) is injected only via Host::keys(). State::poll() then maps keyboard keys onto the stand-in gamepad (FALLBACK) only when !any_pad.
When an XInput controller (physical or virtual) is connected on the host, FALLBACK is disconnected (DEVICE_DISCONNECTED), so VICTORY_KEYS=30:Enter,35:X feeds the keyboard device only and never presses gamepad buttons in the title.
Change
Verification
@DaviTostes on GitHub · 2026-11-24 01:30 UTC · original
Tested
64484b4under Wine 11.22 + vkd3d-proton 3.1 (Arch Linux x86_64, AMD RX 9060 XT, RADV 26.3.1), Windows build ofvictory-hle: pass.victory_hle: 86 passed, 1 failed — the failure ismodules::net::tests::only_loopback_is_reachable(Wine lacksWSAConnectByList); #195 fixes exactly that, so with #195 on top the suite is 87/0.VICTORY_KEYS-to-pad test passes. The host-pad path itself is not exercised on this machine (no controller attached), but no regression in the input module.No game data used.
@jimokulou2-ops on GitHub · 2026-11-24 02:18 UTC · original
Tested
64484b4natively on Windows with a physical XInput pad connected: pass. It fixes the problem the description names. Written by Claude Code (Claude Opus 5.5), which ran the commands; the title ran on my machine.Setup: Windows 11 Pro 10.0.26300, AMD RX 9070 XT (RDNA4, Adrenalin 26.11.2), Rust 1.98.1 (
rust-toolchain.toml),cargo build --profile diag -p victory --features diagnostics. The pad is connected in both runs (input device device=0 connected=true). The title is v1.0.2.1, Series X mode.Before / after. Both runs use the same
VICTORY_KEYS:Enterevery 4 s from 10 s on. They also useVICTORY_D3D12_WARP=1and start from a fresh data folder (first boot).maind2a4baed2a4bae+64484b4(local merge, no conflicts)That run then ends at 152 s with a WARP device removal (
0x887A0004). It happens right after WARP refuses a batch of compute pipelines (0x80070057), as world loading starts, and it is unrelated to input.Tests on
d2a4bae+64484b4, debug:cargo test -p victory-hle: 87 passed, 0 failed (includingscripted_keys_merge_into_connected_host_pad)cargo test --workspace --no-fail-fast: 265 passed, 0 failed, 4 ignored (mainalone: 264 / 0 / 4)Not tested: a physical pad held while scripted keys fire (I did not touch the pad during the runs); more than one connected pad; NVIDIA / Intel.
@zGLados on GitHub · 2026-11-24 11:40 UTC · original
Tested
64484b4on Windows with an XInput pad connected in slot 0: pass. It fixes the problem the description names.Setup: Windows 11 Pro 10.0.26300, AMD RX 7700 XT (RDNA3, driver 32.0.32015.7029), Ryzen 7 7700X, 32 GB, title 1.0.2.1. #197 merged onto
mainatffe310e(clean merge).cargo test -p victory-hle --lib --features diagnostics: 95 passed, 0 failed (incl.scripted_keys_merge_into_connected_host_pad)cargo build --profile diag -p victory --features diagnostics: okmainffe310e, diag build,VICTORY_KEYS= Enter every 6 s from 10 s to 100 s): stays on the start screen for the whole 4-minute run. The log shows the host pad connected and the stand-in pad disconnected.Written by Claude Code (Claude Opus 5.5), which ran the commands; the title ran on my machine.
@dcastell1 on GitHub · 2026-11-24 12:16 UTC · original
Data point from a Windows/5090 run of the retail title, because this is exactly the variable in question.
Build:
4740e19(the #185 merge intoffe310e, aycow/VIctory#4) +MIN_DYNAMIC = 1 << 18(#747),cargo build --profile diag -p victory --features diagnostics, Rust 1.98.1, MSVC 14.44.35207, Windows 11 10.0.26300, RTX 5090 driver 621.24, no pad attached.What the title does: it presents at 30.0 fps / 33.3 ms from the start (13 draws/frame), and the first-run screens advance on their own: the accessibility screen, then the player selector, then the legal/copyright page (text read back from the presented frame with OCR, so the screen is identified, not guessed). It stops on
LEGALES … Siguienteand stays there.What does not move it:
VICTORY_KEYSat a 4 s Enter cadence from 15 s to 300 s; 20 Down presses before the Enters; and nativeSendInput(window foregrounded withSetForegroundWindow) with 1.5 s and 3 s holds of Enter.draws/framedoes not change across any of those, on any of the three screens.Since the screens advanced without input, I cannot use the progression as evidence that the keys arrive: the honest reading is that nothing the keys do reaches this title's UI, which matches the title of this issue (
VICTORY_KEYSonly feeds the stand-in pad). If the stand-in pad is meant to be what the title reads for aGAMEPAD_KINDdevice, then on this title it is not being consumed: the log showsinput device device=4 connected=true,device=5 connected=trueandinput device callback kind=0x40000 enumeration=2 devices=1, and the screen still waits.No game data in this comment — screen labels, counts and the environment only. Happy to run a patched build on this box if someone wants the other half of the experiment.
@dcastell1 on GitHub · 2026-11-24 12:26 UTC · original
Refinement after more attempts on the same box (5090, 1.0.2.1, build
4740e19+MIN_DYNAMIC = 1 << 18, diag): navigation reaches the title, accept does not.Downheld for 8 s on theLEGALES / Copyrightpage scrolled it and moved the selection ontoSIGUIENTE(its tooltip appeared: "Continua a la siguiente pantalla");draws/framechanged 38 → 33. So arrow keys are consumed.CONDICIONES Y POLÍTICAS LEGALES, two checkboxes andConfirmar),Down/Upmove the highlight and its tooltip says "Confirma la configuración y empieza a jugar", but Enter (A) never activates it: 3 spaced presses and a 3 s hold change nothing, and the screen stays.SIGUIENTE→ the legal page), so I cannot tell that apart from the title advancing on its own after a delay.That splits the report: the keyboard path (arrows) is delivered, and the stand-in pads A either is not delivered or is delivered to a device the UI does not read. If a real pad is plugged in on this box, I can say which half is broken in one run.
AI-assisted (opencode).
@pfhandler on GitHub · 2026-11-24 20:50 UTC · original
Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):
VICTORY_NO_HOST_PAD=1— a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad letsVICTORY_KEYSdrive the title again.VICTORY_MODE=1920x1080— the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.
@Marvisak on GitHub · 2026-11-25 00:22 UTC · original
Automated triage for the maintainers.
Merge candidate. On main,
VICTORY_KEYSonly reaches the stand-in pad, whichState::polldisconnects whenever a host pad is connected, so scripted keys do nothing on a machine with a controller. The PR addsSource::scripted_keys(built only withtestordiagnostics), maps the keys through the existingfallback()table and ORs them onto the first connected host pad (merge_pad/merge_scriptedincrates/victory-hle/src/modules/gameinput.rs); release builds are unchanged. The test matchesFALLBACK_BUTTONSand the stick/trigger keys offallback()and checks the physical pad's state comes back when the script ends.CI: no check runs on the head commit.
Generated by Claude Code