Skip to content

HLE: add VICTORY_NO_HOST_PAD to hide host gamepads - #1702

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

Calvix2k wants to merge 1 commit 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.
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
@Calvix2k
Calvix2k force-pushed the codex/hle-hide-host-pad branch from 10b96de to 7046f97 Compare November 25, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants