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

Manually merged
github merged 1 commit from github-bot/gh-2306 into main 2026-11-30 14:17:08 +00:00 AGit
Owner

@⁠RB-404 on GitHub · 2026-11-29 11:40 UTC · original
RB-404:fix/gamepad-prompts → main · +32 −1 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

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

**@⁠RB-404** on GitHub · 2026-11-29 11:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2306) `RB-404:fix/gamepad-prompts` → `main` · +32 −1 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC 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)
The keyboard-prompt hook (fea7bb3c) is placed unless VICTORY_PROMPTS says
otherwise, whatever F1's CONTROLS is. With CONTROLS GAMEPAD the title is
given pads only (gameinput::pads_only) and, since 829188e9, no key or mouse
window message either, yet every start still logged "keyboard keys: hook
placed" and the title drew keys over an Xbox pad's buttons: the keys come
from the hook, not from anything the title took for a keyboard.

Unset, VICTORY_PROMPTS now follows CONTROLS: GAMEPAD and DUALSENSE keep the
title's own controller prompts, AUTO and KEYBOARD get the keys as before.
VICTORY_PROMPTS=keys still draws keys in any mode, and any other value none.

RX 9070 XT, Series X, CONTROLS GAMEPAD, 2026-11-29: "gamepad pictures:
CONTROLS is gamepad" at the start, Xbox buttons in the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 11:44:24 +00:00
github manually merged commit c65342ef9a into main 2026-11-30 14:17:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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