Prompts follow the controls: keys under mouse and keyboard, pad butto… #2545
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!2545
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2545"
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?
@VAldES191 on GitHub · 2026-11-29 14:04 UTC · original
VAldES191:fix-prompts-follow-controls→main· +170 −9 · 5 files · 1 commits · merged 2026-11-30 14:12 UTCProblem
The keyboard prompt hook was placed whenever
VICTORY_PROMPTSwas unset, andskipped when F1's MOUSE AND KEYBOARD was on (
VICTORY_MNK_BINDINGSset). Theresult was the wrong way round: a controller player saw key caps, and a mouse
and keyboard player saw the pad's buttons.
Change
keys play: MOUSE AND KEYBOARD on, or CONTROLS set to KEYBOARD
(
gameinput::key_prompts, the opposite ofpads_only). With GAMEPAD orDUALSENSE the title keeps its Xbox pictures.
VICTORY_PROMPTS=keysor=gamepadstill forces one either way.bindings.ini(
mnk::prompt_keys→prompts::use_bound_keys), not the stand-in pad's.Each control shows the first of its bound keys that has a label. A control
with no such key (bound only to the wheel, or the right stick, which is the
mouse) keeps its pad picture, as do animated hold prompts.
digits 0–9.
Bindings are read once, when the game starts. If you change KEY BINDINGS in F1
during a session, the prompts show the new keys only after a restart.
Files
apps/victory/src/run.rs: decides when to place the prompt hookcrates/victory-hle/src/modules/gameinput.rs:key_prompts(),prompt_keys()crates/victory-hle/src/modules/mnk.rs: bindings → keys for each pad controlcrates/victory-game/src/prompts.rs: bound keys, new labelsREADME.mdTests
prompts::tests::bound_keys_name_each_control_by_its_first_key_with_a_labelmnk::tests::prompts_name_the_bound_keys