HLE: add VICTORY_NO_HOST_PAD to hide host gamepads #1701
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1702"
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?
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T20:55:28Z.
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.Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T21:57:46Z.
Review: APPROVED
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— okClean
VICTORY_NO_HOST_PADtoggle to hide host gamepads, documented inREADME.md. Looks good.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T22:20:05Z.
Review: COMMENTED
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:34:46Z.
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main:mainhas moved since the last triage, and the branch now conflicts incrates/victory-hle/src/modules/gameinput.rs. It will be reviewed again once it is rebased onto currentmain.Previous verdict for this head: merge candidate.
Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T15:25:00Z.
I combined your exact
e34995bwith #375508edf43ine73682d. Both heads are direct parents. Your override still makes the Windows host report no XInput pad. With the override off, #3755 handles analog drift before accepting the first physical input.The failed Windows job reports that
the_no_host_pad_switch_is_off_when_zerois unused. The integration registers it inside the Windows host test module, alongside your test for hiding pads. Both tests pass, along with the idle-pad regression. Each of the normal and diagnostic GameInput suites passed 13 tests. Both strict HLE Clippy configurations and the asset policy passed.@Calvix2k, the fork commit is available to update the PR. Please retain the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding my change into another commit.AI-assisted with OpenAI Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.