Skip to content

HLE: add VICTORY_NO_HOST_PAD to hide host gamepads - #1702

Open
Calvix2k wants to merge 2 commits into
Marvisak:mainfrom
Calvix2k:codex/hle-hide-host-pad
Open

Calvix2k wants to merge 2 commits into
Marvisak:mainfrom
Calvix2k:codex/hle-hide-host-pad

Conversation

@Calvix2k

Copy link
Copy Markdown
Contributor

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 DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

zhaibingye added a commit to zhaibingye/VIctory that referenced this pull request Nov 24, 2026
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.
@Calvix2k
Calvix2k force-pushed the codex/hle-hide-host-pad branch 3 times, most recently from b380544 to 96a88b0 Compare November 25, 2026 02:17

Marvisak commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

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

HoLa-Lee pushed a commit to HoLa-Lee/victory-wave-wide-barriers that referenced this pull request Nov 25, 2026
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.
@Calvix2k
Calvix2k force-pushed the codex/hle-hide-host-pad branch from 68c1f7f to e34995b Compare November 26, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants