Repository navigation
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (70564ae, Windows 11 x64, Rust 1.98.1 MSVC):
cargo test -p victory-hle --lib gameinput::— 8 passed, 0 failedcargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— ok
Clean VICTORY_NO_HOST_PAD toggle to hide host gamepads, documented in README.md. Looks good.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
VICTORY_NO_HOST_PAD hides host gamepads from titles: gameinput.rs env-gated pad suppression. Small, reversible debugging switch — fine.
Backport Marvisak#1702. Independent reviewer reported 8 MSVC GameInput tests passed on upstream 70564ae. Linux-to-Windows MSVC-target HLE test compilation passed on the combined code with blake3 pure enabled only in the disposable verification checkout.
b380544 to
96a88b0
Compare
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into Previous verdict for this head: merge candidate. Generated by Claude Code |
docs/value-vs-upstream.md: the most-starred forks are all doing shader fidelity (JMAN730 42 stars, DexNom wave64 masks, PastiiJay FidelityFX) and nobody measures frame composition, host memory or how to drive the menus. Group by group: rpcrt4 and Marvisak#928 are upstream's; COPY_PLAIN, FRAME_LOG, DRIVER_WATCH supersede ours; the texture-refresh numbers complement Marvisak#388 and Marvisak#1873; the staging budget, the page-bitmap detile, the pad-stick gap (Marvisak#1702's missing half), the terms page, the committed saves, the wave64 sentence (Marvisak#2105/Marvisak#599/Marvisak#2035), the ALERT_ERROR_SUPPORT trap and the memory series complement Marvisak#1479 - with what is worth sending where.
A connected host pad (for example a DualShock that XInput reports as pad 0) keeps the keyboard stand-in pad from being enumerated, so a title that mis-handles that pad has no keyboard input left. VICTORY_NO_HOST_PAD=1 makes every XInput slot report empty, which brings the stand-in back. From the local patch @pfhandler posted under Marvisak#1677 while running through vkd3d-proton. The flag is read once when the input hub is built and logs its state. Validation: - cargo test -p victory-hle --locked -- --test-threads=1 - cargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings - cargo xtask policy
`VICTORY_NO_HOST_PAD=0` used to hide the pads because only the variable's presence was checked; the README says these switches are off when unset or `0`. Read the value like the GPU crate's switch does, and test the `0`, other and unset cases.
68c1f7f to
e34995b
Compare
Implements the
VICTORY_NO_HOST_PADlocal patch @pfhandler posted under #1677.Summary
A connected host pad (e.g. a DualShock that XInput exposes as pad 0) keeps the keyboard stand-in pad from being enumerated, so if the title mis-handles that pad there is no keyboard input left.
VICTORY_NO_HOST_PAD=1makes every XInput slot report empty, which brings the stand-in back.INFOline says the pads are ignored, so a log explains the empty slots.Test
host_pads_can_be_hidden_for_the_keyboard_stand_inchecks that a hidden host returns no pad for connected and empty slots without calling XInput.Validation
cargo test -p victory-hle --locked -- --test-threads=1— passed (95 unit tests and 1 integration test).cargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings— passed.cargo xtask policy— passed (154 files).rustfmt --edition 2024 --checkreports only pre-existing hunks in untouched code.Tested by the reporter on GE-Proton 11-14 / vkd3d-proton 3.2.0, where it let
VICTORY_KEYSdrive the title again.