prompts: leave the title's pad pictures alone when the pad is the input #2690
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2690
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2690"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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_promptsinstalled the key-cap hook whenever the build was known: it never askedwhich device the player uses. Since
829188e9a pad-only start gives the title no key or mousedevice (
pads_only()), so the title draws its own controller icons — and the hook then redrewthem as key caps, so a gamepad player saw WASD and Enter.
keyboard_prompts(), the inverse ofpads_only(), now gates the install: the keys are drawnonly with MOUSE AND KEYBOARD on in F1 (
VICTORY_MNK=1) orVICTORY_CONTROLS=keyboard. Thestart 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
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.
key caps.
VICTORY_MNK=1it prints "keyboard keys: hook placed".
cargo testpassed for the crates it touches: yes —cargo build --release --locked -p victory, andcargo test -p victory-hle --lib.Checked for overlap
Related:
829188e9(the same decision for key and mouse messages)@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 touchcrates/victory-hle/src/modules/gameinput.rsthe way this does. #2306, #2257, #2630 and #2545take 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 existingpads_only())plus a guard before
victory_game::prompts::hook::install, so a pad-only start keeps thetitle'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=1it 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.Pull request closed