HLE: add VICTORY_NO_HOST_PAD to hide host gamepads #1701

Open
Calvix2k wants to merge 2 commits from upstream-pr/1702 into main
Calvix2k commented 2026-11-24 20:55:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-24T20:55:28Z.


Implements the VICTORY_NO_HOST_PAD local 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=1 makes every XInput slot report empty, which brings the stand-in back.

  • The flag is read once when the hub's host input is built, not per poll or per slot.
  • One INFO line says the pads are ignored, so a log explains the empty slots.
  • README environment table updated.

Test

host_pads_can_be_hidden_for_the_keyboard_stand_in checks 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 --check reports 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_KEYS drive the title again.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5480175230 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1702). Originally posted by [Calvix2k](https://github.com/Calvix2k) on 2026-11-24T20:55:28Z. --- Implements the `VICTORY_NO_HOST_PAD` local 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=1` makes every XInput slot report empty, which brings the stand-in back. - The flag is read once when the hub's host input is built, not per poll or per slot. - One `INFO` line says the pads are ignored, so a log explains the empty slots. - README environment table updated. ## Test `host_pads_can_be_hidden_for_the_keyboard_stand_in` checks 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 --check` reports 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_KEYS` drive the title again.
DenRakEiw commented 2026-11-24 21:57:46 +00:00 (Migrated from github.com)

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 failed
  • cargo clippy -p victory-hle --all-targets — 0 warnings
  • cargo xtask policy — ok

Clean VICTORY_NO_HOST_PAD toggle to hide host gamepads, documented in README.md. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6048059777 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1702#pullrequestreview-6048059777). Originally posted by [DenRakEiw](https://github.com/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 failed - `cargo clippy -p victory-hle --all-targets` — 0 warnings - `cargo 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 commented 2026-11-24 22:20:05 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:Marvisak/VIctory:review:6048313783 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1702#pullrequestreview-6048313783). Originally posted by [catminou4](https://github.com/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.
Marvisak commented 2026-11-25 04:06:57 +00:00 (Migrated from github.com)

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: main has moved since the last triage, and the branch now conflicts in crates/victory-hle/src/modules/gameinput.rs. It will be reviewed again once it is rebased onto current main.

Previous verdict for this head: merge candidate.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152045312 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1702#issuecomment-7152045312). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:34:46Z. --- <!-- victory-triage v1 head=68c1f7f20f683b4e86a5837ac0f9f6e17a25defd verdict=needs-rebase at=2026-11-25T22:28:00Z --> Automated triage for the maintainers. **Needs rebase.** This PR no longer merges cleanly into `main`: `main` has moved since the last triage, and the branch now conflicts in `crates/victory-hle/src/modules/gameinput.rs`. It will be reviewed again once it is rebased onto current `main`. Previous verdict for this head: merge candidate. --- _Generated by [Claude Code](https://claude.ai/code)_
andrewpozdnakov7-jpg commented 2026-11-28 15:25:00 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T15:25:00Z.


I combined your exact e34995b with #3755 08edf43 in e73682d. 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_zero is 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7241449868 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1702#issuecomment-7241449868). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T15:25:00Z. --- I combined your exact `e34995b` with #3755 `08edf43` in [`e73682d`](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/e73682dbbd247587a28b97f48faa3fbdae81d78a). 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](https://github.com/Marvisak/VIctory/actions/runs/45833485297/job/139956084084) reports that `the_no_host_pad_switch_is_off_when_zero` is 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1702:upstream-pr/1702'
git switch 'upstream-pr/1702'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1702'
git switch 'upstream-pr/1702'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1702'
git switch 'upstream-pr/1702'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1702'
git switch 'main'
git merge --squash 'upstream-pr/1702'
git switch 'main'
git merge --ff-only 'upstream-pr/1702'
git switch 'main'
git merge 'upstream-pr/1702'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!1701
No description provided.