fix(hle/gameinput): allow physical gamepads to coexist with VICTORY_MNK=1 (#276) #351

Manually merged
github merged 1 commit from github-bot/gh-351 into gh-pr/351/base 2026-12-02 15:34:15 +00:00 AGit
Owner

@⁠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 UTC

Addresses the physical controller + VICTORY_MNK=1 coexistence item in #276.

Summary

  • Removed the early if super::mnk::enabled() { return None; } return in Host::xinput so physical XInput (and PlayStation HID) controllers continue to be polled when VICTORY_MNK=1 is active.
  • Sampled mnk::sample() once per poll via sample_mnk_and_fallback and passed it into State::poll_with_fallback:
    • In default VICTORY_ONE_PAD=1 mode, physical controllers merge seamlessly with mouse & keyboard input via merged() (buttons OR'd, dominant stick/trigger axis wins).
    • In VICTORY_ONE_PAD=0 mode, active mouse & keyboard input merges into the first connected physical pad slot while leaving FALLBACK disconnected so controllers and M&K coexist in both modes.
  • Added unit test 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 ok
  • cargo +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 -> pass
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings -> pass
**@⁠Androtim** on GitHub · 2026-12-02 15:07 UTC · [original](https://github.com/Androtim/MiniVI/pull/351) `Androtim:fix/gameinput-mnk-gamepad-coexist` → `main` · +145 −13 · 1 files · 1 commits · merged 2026-12-02 15:33 UTC Addresses the physical controller + `VICTORY_MNK=1` coexistence item in #276. ### Summary - Removed the early `if super::mnk::enabled() { return None; }` return in `Host::xinput` so physical XInput (and PlayStation HID) controllers continue to be polled when `VICTORY_MNK=1` is active. - Sampled `mnk::sample()` once per poll via `sample_mnk_and_fallback` and passed it into `State::poll_with_fallback`: - In default `VICTORY_ONE_PAD=1` mode, physical controllers merge seamlessly with mouse & keyboard input via `merged()` (buttons OR'd, dominant stick/trigger axis wins). - In `VICTORY_ONE_PAD=0` mode, active mouse & keyboard input merges into the first connected physical pad slot while leaving `FALLBACK` disconnected so controllers and M&K coexist in both modes. - Added unit test `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 ok` - `cargo +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` -> pass - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings` -> pass
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 15:12:37 +00:00
github-bot changed target branch from main to gh-pr/351/base 2026-12-02 15:34:13 +00:00
github manually merged commit bdd24116fd into gh-pr/351/base 2026-12-02 15:34:15 +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/Androtim--MiniVI!351
No description provided.