Controller prompts: no key caps over the pad's buttons in gamepad mode #2459
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!2459
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2459"
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?
@brucegrapes on GitHub · 2026-11-29 13:15 UTC · original
brucegrapes:fix/controller-prompts→main· +21 −3 · 3 files · 1 commits · openvictory run --executeplaced the key-caps prompt hook whenever VICTORY_PROMPTS was unset, whatever VICTORY_CONTROLS said, so a player on a controller saw keyboard keys in every prompt while the pad itself worked.With CONTROLS GAMEPAD or DUALSENSE and VICTORY_PROMPTS unset, the hook is now left out and the title keeps its own controller pictures; the run prints "prompts gamepad pictures" instead. VICTORY_PROMPTS=keys still asks for key caps, and AUTO is as before. gameinput::controllers_only() answers the check.
Fixes #
What it changes
With a controller set as the only input (
VICTORY_CONTROLSGAMEPAD or DUALSENSE), every in-game prompt still showed keyboard keys. The pad itself worked.The cause is in
victory run --execute(apps/victory/src/run.rs). It placed the key-caps prompt hook (show_keys_in_prompts) wheneverVICTORY_PROMPTSwas unset, and never looked atVICTORY_CONTROLS. So the key caps replaced the title's controller pictures in every prompt, even with no keyboard or mouse in use.What this does:
VICTORY_PROMPTSunset, the hook is left out and the title keeps its own controller pictures.prompts gamepad pictures: CONTROLS is GAMEPAD or DUALSENSE (VICTORY_PROMPTS=keys for key caps)instead of placing the hook.VICTORY_PROMPTS=keysstill forces key caps, whatever CONTROLS says.victory_hle::modules::gameinput::controllers_only(), which reads the same CONTROLS setting the input layer already uses.This follows on from
829188e9("no key or mouse window message reaches the title in gamepad mode"), which stopped key and mouse input from reaching the title in gamepad mode but left the prompt hook in place.Files:
apps/victory/src/run.rs,crates/victory-hle/src/modules/gameinput.rs,README.md(+21/−3).How it was tested
VICTORY_BVH_BUILDER=1), Xbox controller,VICTORY_CONTROLS=gamepadcargo testpassed for the crates it touches: yescargo check -p victory -p victory-hle --all-targets --locked: passedcargo test -p victory-hle --lib --locked gameinput: 84 passed, 0 failed, 2 ignoredChecked for overlap
🤖 Generated with Claude Code
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.