Prompts: Xbox buttons in gamepad mode, not keyboard keys #2306
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2306"
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 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 wheneverVICTORY_PROMPTSis unset, and it ignores CONTROLS. In gamepad mode the title is already given pads only (gameinput::pads_only), and since829188e9it gets no key or mouse window messages either. Every start still loggedprompts keyboard keys: hook placed, because the keys come from the hook itself, not from anything the title took for a keyboard. That's why829188e9alone didn't change the prompts.Fix: when
VICTORY_PROMPTSis unset, it now follows CONTROLS:prompts gamepad pictures: CONTROLS is gamepad.VICTORY_PROMPTS=keysstill draws keys in any mode, and any other value still turns them off.Tested: a new
key_prompts_follow_controls_unless_askedtest, and the existingupscaler_modetests, 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