Controller prompts: no key caps over the pad's buttons in gamepad mode #2459

Open
brucegrapes wants to merge 1 commit from upstream-pr/2459 into main
brucegrapes commented 2026-11-29 13:15:55 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by brucegrapes on 2026-11-29T13:15:55Z.


victory run --execute placed 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_CONTROLS GAMEPAD 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) whenever VICTORY_PROMPTS was unset, and never looked at VICTORY_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:

  • With CONTROLS GAMEPAD or DUALSENSE and VICTORY_PROMPTS unset, the hook is left out and the title keeps its own controller pictures.
  • In that case the run prints prompts gamepad pictures: CONTROLS is GAMEPAD or DUALSENSE (VICTORY_PROMPTS=keys for key caps) instead of placing the hook.
  • VICTORY_PROMPTS=keys still forces key caps, whatever CONTROLS says.
  • AUTO and the keyboard modes are unchanged.
  • The check is a new victory_hle::modules::gameinput::controllers_only(), which reads the same CONTROLS setting the input layer already uses.
  • One README line now says that CONTROLS GAMEPAD or DUALSENSE shows controller prompts.

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

  • GPU and profile: RTX 3060, Series X, 2560x1440, DLSS balanced, frame generation off, ray tracing on (VICTORY_BVH_BUILDER=1), Xbox controller, VICTORY_CONTROLS=gamepad
  • Before: every prompt showed keyboard keys while the controller worked.
  • After: TODO
  • Wave sizes: not applicable (no shader changes)
  • cargo test passed for the crates it touches: yes
    • cargo check -p victory -p victory-hle --all-targets --locked: passed
    • cargo test -p victory-hle --lib --locked gameinput: 84 passed, 0 failed, 2 ignored

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5551073889 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2459). Originally posted by [brucegrapes](https://github.com/brucegrapes) on 2026-11-29T13:15:55Z. --- `victory run --execute` placed 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_CONTROLS` GAMEPAD 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`) whenever `VICTORY_PROMPTS` was unset, and never looked at `VICTORY_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: - With CONTROLS GAMEPAD or DUALSENSE and `VICTORY_PROMPTS` unset, the hook is left out and the title keeps its own controller pictures. - In that case the run prints `prompts gamepad pictures: CONTROLS is GAMEPAD or DUALSENSE (VICTORY_PROMPTS=keys for key caps)` instead of placing the hook. - `VICTORY_PROMPTS=keys` still forces key caps, whatever CONTROLS says. - AUTO and the keyboard modes are unchanged. - The check is a new `victory_hle::modules::gameinput::controllers_only()`, which reads the same CONTROLS setting the input layer already uses. - One README line now says that CONTROLS GAMEPAD or DUALSENSE shows controller prompts. 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 - GPU and profile: RTX 3060, Series X, 2560x1440, DLSS balanced, frame generation off, ray tracing on (`VICTORY_BVH_BUILDER=1`), Xbox controller, `VICTORY_CONTROLS=gamepad` - Before: every prompt showed keyboard keys while the controller worked. - After: TODO - Wave sizes: not applicable (no shader changes) - `cargo test` passed for the crates it touches: yes - `cargo check -p victory -p victory-hle --all-targets --locked`: passed - `cargo test -p victory-hle --lib --locked gameinput`: 84 passed, 0 failed, 2 ignored ## Checked for overlap - [ ] I searched the open pull requests for the same issue and for the files this touches. Related: # 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2459:upstream-pr/2459'
git switch 'upstream-pr/2459'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2459'
git switch 'upstream-pr/2459'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2459'
git switch 'upstream-pr/2459'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2459'
git switch 'main'
git merge --squash 'upstream-pr/2459'
git switch 'main'
git merge --ff-only 'upstream-pr/2459'
git switch 'main'
git merge 'upstream-pr/2459'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!2459
No description provided.