GameInput: native mouse and keyboard no longer hide the XInput pad (#2436) #2583
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2583
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2583"
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?
@fainty0 on GitHub · 2026-11-29 14:39 UTC · original
fainty0:fix/2436-xinput-with-mnk→main· +65 −9 · 2 files · 1 commits · merged 2026-11-30 14:12 UTCFixes #2436
What it changes
The merge
1d5e66a8(Merge branch 'wave-4' into combined) combined a per-slot probe that allowed XInput in native mouse mode with a snapshot guard that dropped all XInput slots whenever MNK bindings were loaded. The snapshot guard ran first, so the native-mode exception was unreachable.With
VICTORY_MNK=1, native mouse is on unlessVICTORY_NATIVE_MOUSE=0. The fix lets physical XInput gameplay input work alongside mouse and keyboard, as the native-mode exception intended. By default, one-pad mode merges physical samples into the existing virtual gamepad; it does not enumerate a separate GameInput device. WithVICTORY_ONE_PAD=0, the physical pad appears as its own GameInput device after the first nonzero input and remains visible until disconnected. Legacy MNK keeps XInput out of gameplay and uses it only for F1 menu navigation; DualSense-only selection still excludes XInput.How it was tested
829188e9.--keep-going). HLE-only default diagnostics were unchanged; all-features HLE linting was blocked byvictory-gpucompilation errors on both revisions.cargo testpassed for the crates it touches: no. The focused Linux Cargo invocation could not compile the Windows-dependent GPU crate. Windows tests were not run (no Windows).Checked for overlap
@andrewpozdnakov7-jpg on GitHub · 2026-11-30 06:47 UTC · original
I checked #2436 on Windows with Rust 1.98.1/MSVC. The current release
v2026.11.29.05andmainboth point to41adb551. The exact #2583 commitd346bcdapplied cleanly there as7505a52, preserving its Git author.I ran the same native
Host::padtest in both trees. The test substitutes the return value of one connected XInput pad with button A pressed and its right stick half-right. It exercises the normal gameplay-slot routing and uses one temporary bindings file.41adb5517505a52The Windows GameInput suite passed 84 tests on main and 88 with the patch, including all four new routing tests. Two tests were ignored on each tree. These checks use a synthetic XInput sample.
@ZorionTen, could you try the same wired controller with native mouse and keyboard enabled on the current release and on a build containing #2583? Please check whether a button and the right stick work while mouse look still works. If a test build is needed, could the maintainer provide one from current main plus #2583? Original report
The PR currently shows the title-label check. A Windows CI run on the rebased head would also help review.
AI-assisted with OpenAI Codex.
@andrewpozdnakov7-jpg on GitHub · 2026-11-30 08:22 UTC · original
ZorionTen has now confirmed the symptom and fix in gameplay. Their fork's
faa66194removes the unconditional MNK exclusion, and they report that controller input, mouse, and keyboard all work together.That independently corroborates the routing diagnosis for #2583. The gameplay run used their fork's commit. The Windows synthetic routing results above cover the exact #2583 patch applied to current main, including legacy-MNK and DualSense-only controls.
@andrewpozdnakov7-jpg on GitHub · 2026-11-30 12:00 UTC · original
An independent report now confirms the control on an Xbox Elite Series 2. In #3709, the failing build logged
VICTORY_MNK=1, the keyboard stand-in and no physical XInput slot. The reporter then launched withVICTORY_MNK=0and confirmed the controller worked. Reporter confirmationThis matches the control arm of the Windows fixture above. The fixture also shows the connected pad sample is delivered with native MNK enabled on this PR. An on-device run of the exact PR head with MNK still enabled would complete that part of the check.
AI-assisted with OpenAI Codex.