Prompts: show the keys of the active keyboard profile #4588
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4588"
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 tyr0nsur on 2026-11-30T23:20:43Z.
Fixes #4536.
What it changes
With the shipped
bindings.ini, the native keyboard path handles Tab for LB and F for Y. The keyboard pictures still show Q and Y on current main. The profile lookup from #2545 was left disconnected from the prompt hook, and the native input path began using the profile's buttons inffe92c57.bindings.ini. Existing host shortcuts still apply. The test uses F5 to avoid the host's F1–F3 shortcuts.The pictures reflect the profile loaded at launch. A restart is required to refresh them after editing a binding in the menu. Animated hold prompts keep their original art.
This can work with the layout proposed in #4586. This PR reads whichever profile is active and leaves the shipped key assignments in place. It also leaves the movie-load timing from #3442 outside this change.
How it was tested
Windows validation on
e23347a0, based on current mainf5c3d243after the F1 menu update in #4634.victory-gamelibrary tests passed. The synthetic movie verifies that only the controls bound to Tab and F5 are redrawn in that case.cargo check --locked -p victoryand the staged asset-policy check passed for nine files.The CI check on this head stops at the same five Clippy findings as main
f5c3d243. The fixes are tracked in #4679. The CI test step did not run.Checked for overlap
Related: #4541, #4586, #3442 and #4634.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by F0RLE on 2026-11-30T23:40:16Z.
Code review location:
crates/victory-hle/src/modules/mnk.rs; line 299Thanks for wiring the active bindings into the prompts. One small native-mouse case worth covering:
bindings.iniacceptsShift,CtrlandAlt, but the Windows sampler reports the left/right VKs, so this filter leaves those generic bindings unsupported in native mode. For example,A = Shiftshould let either Shift drive A, without also firing the stock L3 binding.A small fix is to share a binding matcher between the stand-in button resolver and the prompt builder: exact match, plus
VK_SHIFT→VK_LSHIFT/VK_RSHIFT(likewise Ctrl and Alt). Use it both when evaluating custom bindings and when suppressing covered stock bindings/prompts, then allow the generic VKs through this filter. An explicitly left/right binding should still cover only that side.I tested this approach locally in the stand-in button resolver: all six side-specific inputs produced only the custom button, and remapping just Left Shift left Right Shift's stock mapping intact. The GameInput/MnK unit tests passed (97 passed, 2 ignored).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by F0RLE on 2026-12-01T09:59:42Z.
Code review location:
crates/victory-hle/src/modules/mnk.rs; line 299Follow-up: I opened #4627 for the input-side fix discussed here. With a binding like
A = Shift, either physical Shift key triggers A without also firing the stock button. The same applies to generic Ctrl and Alt bindings. #4627 leaves the on-screen prompts unchanged.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.