Prompts follow the controls: keys under mouse and keyboard, pad butto… #2545
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by VAldES191 on 2026-11-29T14:04:53Z.
Problem
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