HLE: add VICTORY_NO_HOST_PAD to hide host gamepads #1702

Open
github-bot wants to merge 2 commits from github-bot/gh-1702 into main AGit
Owner

@⁠Calvix2k on GitHub · 2026-11-24 20:55 UTC · original
Calvix2k:codex/hle-hide-host-pad → main · +45 −2 · 2 files · 2 commits · open

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.

**@⁠Calvix2k** on GitHub · 2026-11-24 20:55 UTC · [original](https://github.com/Marvisak/VIctory/pull/1702) `Calvix2k:codex/hle-hide-host-pad` → `main` · +45 −2 · 2 files · 2 commits · open 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.
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 #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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:42:10 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:34 UTC · original · edited 2026-11-25 22:24 UTC

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

**@⁠Marvisak** on GitHub · 2026-11-25 03:34 UTC · [original](https://github.com/Marvisak/VIctory/pull/1702#issuecomment-7152045312) · edited 2026-11-25 22:24 UTC <!-- 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)_
github-bot force-pushed github-bot/gh-1702 from 68c1f7f20f to e34995be3b 2026-11-26 13:59:28 +00:00 Compare
Author
Owner

@⁠DenRakEiw on GitHub · 2026-11-24 21:57 UTC · original · approved these changes

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).

**@⁠DenRakEiw** on GitHub · 2026-11-24 21:57 UTC · [original](https://github.com/Marvisak/VIctory/pull/1702#pullrequestreview-6048059777) · **approved these changes** 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).
Author
Owner

@⁠catminou4 on GitHub · 2026-11-24 22:20 UTC · original · reviewed

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.

**@⁠catminou4** on GitHub · 2026-11-24 22:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/1702#pullrequestreview-6048313783) · **reviewed** 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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1702/head:github-bot/gh-1702'
git switch 'github-bot/gh-1702'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1702'
git switch 'github-bot/gh-1702'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1702'
git switch 'github-bot/gh-1702'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1702'
git switch 'main'
git merge --squash 'github-bot/gh-1702'
git switch 'main'
git merge --ff-only 'github-bot/gh-1702'
git switch 'main'
git merge 'github-bot/gh-1702'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!1702
No description provided.