prompts: leave the title's pad pictures alone when the pad is the input #2690

Closed
github-bot wants to merge 1 commit from github-bot/gh-2690 into main AGit
Owner

@⁠gnastnosaj on GitHub · 2026-11-29 16:06 UTC · original
gnastnosaj:pr/pad-prompts → main · +23 −0 · 2 files · 1 commits · closed without merging

[pr-fix]

Fixes # (no issue filed; reported by a gamepad player)

What it changes

show_keys_in_prompts installed the key-cap hook whenever the build was known: it never asked
which device the player uses. Since 829188e9 a pad-only start gives the title no key or mouse
device (pads_only()), so the title draws its own controller icons — and the hook then redrew
them as key caps, so a gamepad player saw WASD and Enter.

keyboard_prompts(), the inverse of pads_only(), now gates the install: the keys are drawn
only with MOUSE AND KEYBOARD on in F1 (VICTORY_MNK=1) or VICTORY_CONTROLS=keyboard. The
start says why otherwise: "prompts gamepad pictures: the pad is the input (F1 MOUSE AND
KEYBOARD, or VICTORY_CONTROLS=keyboard, draws the keys instead)".

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Series X
    profile, keyboard prompts off; the decision itself is pads_only_for's existing matrix
    (AUTO without MOUSE AND KEYBOARD is pad-only; KEYBOARD is not), which has tests.
  • Before: with a pad and MOUSE AND KEYBOARD off, the title's A/B/X/Y pictures were replaced by
    key caps.
  • After: with the default switches the start prints "gamepad pictures"; with VICTORY_MNK=1
    it prints "keyboard keys: hook placed".
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): n/a
  • cargo test passed for the crates it touches: yes — cargo build --release --locked -p victory, and cargo test -p victory-hle --lib.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
    Related: 829188e9 (the same decision for key and mouse messages)
**@⁠gnastnosaj** on GitHub · 2026-11-29 16:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2690) `gnastnosaj:pr/pad-prompts` → `main` · +23 −0 · 2 files · 1 commits · closed without merging [pr-fix] Fixes # (no issue filed; reported by a gamepad player) ## What it changes `show_keys_in_prompts` installed the key-cap hook whenever the build was known: it never asked which device the player uses. Since 829188e9 a pad-only start gives the title no key or mouse device (`pads_only()`), so the title draws its own controller icons — and the hook then redrew them as key caps, so a gamepad player saw WASD and Enter. `keyboard_prompts()`, the inverse of `pads_only()`, now gates the install: the keys are drawn only with MOUSE AND KEYBOARD on in F1 (`VICTORY_MNK=1`) or `VICTORY_CONTROLS=keyboard`. The start says why otherwise: "prompts gamepad pictures: the pad is the input (F1 MOUSE AND KEYBOARD, or VICTORY_CONTROLS=keyboard, draws the keys instead)". ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): Series X profile, keyboard prompts off; the decision itself is `pads_only_for`'s existing matrix (AUTO without MOUSE AND KEYBOARD is pad-only; KEYBOARD is not), which has tests. - Before: with a pad and MOUSE AND KEYBOARD off, the title's A/B/X/Y pictures were replaced by key caps. - After: with the default switches the start prints "gamepad pictures"; with `VICTORY_MNK=1` it prints "keyboard keys: hook placed". - For shader changes, the wave sizes tested (32 and/or 64 lanes): n/a - `cargo test` passed for the crates it touches: yes — `cargo build --release --locked -p victory`, and `cargo test -p victory-hle --lib`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: 829188e9 (the same decision for key and mouse messages)
`show_keys_in_prompts` installed the key-cap hook whenever the build was known: it never asked
which device the player uses. Since 829188e9 a pad-only start gives the title no key or mouse
device (`pads_only()`), so the title draws its own controller icons — and the hook then redrew
them as key caps, so a gamepad player saw WASD and Enter.

`keyboard_prompts()`, the inverse of `pads_only()`, now gates the install: the keys are drawn
only with MOUSE AND KEYBOARD on in F1 (`VICTORY_MNK=1`) or `VICTORY_CONTROLS=keyboard`. The
start says "gamepad pictures: the pad is the input" otherwise, naming the two switches that
would draw keys.

Tests: `pads_only_for`'s matrix already covers the decision (AUTO without MOUSE AND KEYBOARD
is pad-only, KEYBOARD is not); `cargo build --release --locked -p victory` passes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:10:10 +00:00
Author
Owner

@⁠gnastnosaj on GitHub · 2026-11-29 16:26 UTC · original

Closing this as a duplicate: the same fix is already open in #2134 and #2459 — both gate the
key caps on the input mode in apps/victory/src/run.rs, and both touch
crates/victory-hle/src/modules/gameinput.rs the way this does. #2306, #2257, #2630 and #2545
take the same decision in other shapes, so there is nothing new here for a reviewer to weigh.

For the record, the change was keyboard_prompts() (the inverse of the existing pads_only())
plus a guard before victory_game::prompts::hook::install, so a pad-only start keeps the
title's own A/B/X/Y pictures. It was run in the title on an RTX 4090 with the Series X profile:
with a pad and MOUSE AND KEYBOARD off the start prints "prompts gamepad pictures: the pad is the
input", and with VICTORY_MNK=1 it prints "prompts keyboard keys: hook placed".

Happy to test whichever of #2134 or #2459 lands, and to hand the patch over if either author
wants the keyboard_prompts() name.

**@⁠gnastnosaj** on GitHub · 2026-11-29 16:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2690#issuecomment-7258909281) Closing this as a duplicate: the same fix is already open in #2134 and #2459 — both gate the key caps on the input mode in `apps/victory/src/run.rs`, and both touch `crates/victory-hle/src/modules/gameinput.rs` the way this does. #2306, #2257, #2630 and #2545 take the same decision in other shapes, so there is nothing new here for a reviewer to weigh. For the record, the change was `keyboard_prompts()` (the inverse of the existing `pads_only()`) plus a guard before `victory_game::prompts::hook::install`, so a pad-only start keeps the title's own A/B/X/Y pictures. It was run in the title on an RTX 4090 with the Series X profile: with a pad and MOUSE AND KEYBOARD off the start prints "prompts gamepad pictures: the pad is the input", and with `VICTORY_MNK=1` it prints "prompts keyboard keys: hook placed". Happy to test whichever of #2134 or #2459 lands, and to hand the patch over if either author wants the `keyboard_prompts()` name.
github-bot closed this pull request 2026-11-29 16:32:23 +00:00

Pull request closed

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/trustno1-coder--VIctory-NVIDIA!2690
No description provided.