Prompts: Xbox buttons in gamepad mode, not keyboard keys #2306

Merged
RB-404 merged 1 commit from upstream-pr/2306 into main 2026-11-30 14:12:03 +00:00
RB-404 commented 2026-11-29 11:40:01 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RB-404 on 2026-11-29T11:40:01Z.


With F1's CONTROLS: GAMEPAD, the game still drew keyboard keys over the controller's buttons.

Cause: the keyboard-prompt hook (fea7bb3c) is placed whenever VICTORY_PROMPTS is unset, and it ignores CONTROLS. In gamepad mode the title is already given pads only (gameinput::pads_only), and since 829188e9 it gets no key or mouse window messages either. Every start still logged prompts keyboard keys: hook placed, because the keys come from the hook itself, not from anything the title took for a keyboard. That's why 829188e9 alone didn't change the prompts.

Fix: when VICTORY_PROMPTS is unset, it now follows CONTROLS:

  • GAMEPAD or DUALSENSE: no hook, so the title's own controller prompts show. The start says prompts gamepad pictures: CONTROLS is gamepad.
  • AUTO or KEYBOARD: keyboard keys, as before.
  • VICTORY_PROMPTS=keys still draws keys in any mode, and any other value still turns them off.

Tested: a new key_prompts_follow_controls_unless_asked test, and the existing upscaler_mode tests, pass. In the game (RX 9070 XT, Series X, CONTROLS GAMEPAD): the hook wasn't placed, and the game showed Xbox buttons.

The workspace clippy gate currently fails on main itself (in victory-shader and victory-loader), which this PR doesn't touch.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5550342215 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2306). Originally posted by [RB-404](https://github.com/RB-404) on 2026-11-29T11:40:01Z. --- With F1's **CONTROLS: GAMEPAD**, the game still drew keyboard keys over the controller's buttons. **Cause:** the keyboard-prompt hook (fea7bb3c) is placed whenever `VICTORY_PROMPTS` is unset, and it ignores CONTROLS. In gamepad mode the title is already given pads only (`gameinput::pads_only`), and since 829188e9 it gets no key or mouse window messages either. Every start still logged `prompts keyboard keys: hook placed`, because the keys come from the hook itself, not from anything the title took for a keyboard. That's why 829188e9 alone didn't change the prompts. **Fix:** when `VICTORY_PROMPTS` is unset, it now follows CONTROLS: - GAMEPAD or DUALSENSE: no hook, so the title's own controller prompts show. The start says `prompts gamepad pictures: CONTROLS is gamepad`. - AUTO or KEYBOARD: keyboard keys, as before. - `VICTORY_PROMPTS=keys` still draws keys in any mode, and any other value still turns them off. **Tested:** a new `key_prompts_follow_controls_unless_asked` test, and the existing `upscaler_mode` tests, pass. In the game (RX 9070 XT, Series X, CONTROLS GAMEPAD): the hook wasn't placed, and the game showed Xbox buttons. The workspace clippy gate currently fails on main itself (in victory-shader and victory-loader), which this PR doesn't touch. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!2306
No description provided.