Controller prompts: no key caps over the pad's buttons in gamepad mode #2459
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by brucegrapes on 2026-11-29T13:15:55Z.
victory 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
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.