fix(hle/gameinput): allow physical gamepads to coexist with VICTORY_MNK=1 (#276) #351
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!351
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-351"
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?
@Androtim on GitHub · 2026-12-02 15:07 UTC · original
Androtim:fix/gameinput-mnk-gamepad-coexist→main· +145 −13 · 1 files · 1 commits · merged 2026-12-02 15:33 UTCAddresses the physical controller +
VICTORY_MNK=1coexistence item in #276.Summary
if super::mnk::enabled() { return None; }return inHost::xinputso physical XInput (and PlayStation HID) controllers continue to be polled whenVICTORY_MNK=1is active.mnk::sample()once per poll viasample_mnk_and_fallbackand passed it intoState::poll_with_fallback:VICTORY_ONE_PAD=1mode, physical controllers merge seamlessly with mouse & keyboard input viamerged()(buttons OR'd, dominant stick/trigger axis wins).VICTORY_ONE_PAD=0mode, active mouse & keyboard input merges into the first connected physical pad slot while leavingFALLBACKdisconnected so controllers and M&K coexist in both modes.mnk_and_physical_gamepad_coexist_in_one_pad_and_multi_pad_modes.Verification
cargo +1.98.1-x86_64-pc-windows-gnu xtask policy->325 files okcargo +1.98.1-x86_64-pc-windows-gnu test -p victory-hle gameinput --locked->32 passed; 0 failed; 1 ignored(hardware pad test)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings-> passcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings-> pass