Keep keyboard controls working when a controller is connected #74
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!74
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-74"
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?
@MiguVT on GitHub · 2026-11-24 21:10 UTC · original
MiguVT:fix/keyboard-with-controller→main· +91 −5 · 2 files · 2 commits · openSummary
Based directly on upstream main: independent of Linux workflow PR #64, with only the input fix, tests and input documentation.
Validation
This fixes keyboard suppression when a controller is connected. The separately reported physical Xbox controller input failure remains under investigation.
@MiguVT on GitHub · 2026-11-24 22:10 UTC · original
@fxceless check this ^
@dcastell1 on GitHub · 2026-11-25 07:54 UTC · original
This fixes a hard boot blocker on a USB pad that enumerates as player two. Verified on native Windows, RTX 5090 (driver 621.24), Windows 11 10.0.26300, diag build.
Before (main at
8dd30ab, USB pad in slot 1, slot 0 empty): the guest shell profile card (select profile / player A) never took a button.VICTORY_KEYSpresses only reach a pad in slot 0 (Source::padgates onslot == 0), and the keyboard stand-in pad only exists when no pad is connected anywhere, so with the pad plugged in there was no path at all: the title sat at 13 draws/frame, 30 fps, 1.4 ms GPU, indefinitely. Sending real Enter with the window focused did not help either, which fits the keyboard never reaching that card.With this branch (
4916c1bon8dd30ab):cargo test -p victory-hle→ 99 passed, 0 failed, includingkeyboard_supplements_first_connected_pad_and_releases_cleanly. Boot becomes deterministic: world in ~2 min, 4,691 draws/frame, 2.5 fps / 392 ms, no input loss on the way.Same tree without the branch, same .bat, same session: 13 draws forever. So on this box this is not a nicety, it is the difference between usable and not.
A related data point for the default path:
VICTORY_CARD_FETCH_INFLIGHT=1does not just slow things down here, it hangs the same profile card for 5 minutes straight (reported in #648 with the paired control).Counts only; no game data.
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.