Prompts: show the keys of the active keyboard profile #4589
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!4589
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@tyr0nsur on GitHub · 2026-11-30 23:20 UTC · original
tyr0nsur:codex/accurate-keyboard-prompts→main· +153 −105 · 9 files · 1 commits · openFixes #4537.
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 #4587. 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 #4635.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 #4680. The CI test step did not run.Checked for overlap
Related: #4542, #4587, #3442 and #4635.
@ -296,0 +296,4 @@let bound = b.buttons.iter().filter(|&&(key, on)| {// The native keyboard sampler sees left/right modifiers and// keyboard input. Mouse buttons and wheel pulses come another way.on == bit && (!native_mouse || !matches!(key, 0x01..=0x07 | WHEEL_UP | WHEEL_DOWN | 0x10..=0x12))@F0RLE on GitHub · 2026-11-30 23:40 UTC · original
Thanks 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).
16d475187bto2ca83070262ca8307026toe23347a03b@ -296,0 +296,4 @@let bound = b.buttons.iter().filter(|&&(key, on)| {// The native keyboard sampler sees left/right modifiers and// keyboard input. Mouse buttons and wheel pulses come another way.on == bit && (!native_mouse || !matches!(key, 0x01..=0x07 | WHEEL_UP | WHEEL_DOWN | 0x10..=0x12))@F0RLE on GitHub · 2026-12-01 09:59 UTC · original
Follow-up: I opened #4628 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. #4628 leaves the on-screen prompts unchanged.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.