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!2866
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2866"
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?
@steven-seagull27 on GitHub · 2026-11-29 18:21 UTC · original
steven-seagull27:fix/2836-gamepad-prompts-and-controls→main· +289 −18 · 5 files · 1 commits · openRelated: #2836, #2505, #2489, #2537
Summary
Ensures explicit controller-only modes (
VICTORY_CONTROLS=gamepadandVICTORY_CONTROLS=dualsense) completely isolate controller input from leftover mouse-and-keyboard settings (VICTORY_MNK=1/VICTORY_MNK_BINDINGS), while preservingAUTO-mode keyboard fallback (Enter-> A on the stand-in pad when no gamepad is connected):crates/victory-hle/src/modules/{gameinput,mnk,lifecycle}.rs,crates/victory-hle/src/mousehook.rs):mnk_allowed_for(controls)gatesmnk::enabled(),mnk::sample(),NATIVE_MOUSE_ON(native_mouse_enabled_for), andxinput_suppressed_for, so a leftoverVICTORY_MNK=1never hijacks the mouse cursor/camera hook or suppresses XInput gamepads inCONTROLS=gamepadmode (whileDUALSENSEcontinues to suppress XInput in favor of native DualSense HID).Host::keys()gates live keyboard polling (GetAsyncKeyState) onlive_keyboard_enabled_for(controls(), mnk_on())(!matches!(controls, Controls::Gamepad | Controls::DualSense)), suppressing live keyboard polling in explicitGAMEPAD/DUALSENSEmodes while keepingAUTO-mode keyboard fallback (Enter-> A on the fallback pad when no pad is connected) andKEYBOARDmode working.lifecycle::mouse_capture_enabled()checks!gameinput::pads_only()so legacy cursor capture never traps the pointer in controller-only or defaultAUTO(M&K off) modes.bindings.iniattachment (apps/victory/src/play.rs,scripts/play-foxhound.ps1):should_emit_mnk_bindingsinplay.rsand updatedscripts/play-foxhound.ps1so defaultVICTORY_MNK_BINDINGSis never attached whenVICTORY_CONTROLSisgamepadordualsense.(Note: Prompt-hook changes from an earlier revision of this PR were superseded by
3222c1ebonmainand dropped during the rebase ontocec481f4.)Verification
All checks run with
--lockedand synthetic unit tests only:cargo test --locked -j 2 -p victory-hle --lib -- gameinput --test-threads=1— 88 passed, 0 failed, 2 ignored (includes unit tests for controller-only M&K/native-mouse/XInput policy, live keyboard polling policy includingAUTOfallback, and pads-onlyState::polldevice isolation + fallback pad behavior).cargo test --locked -j 2 -p victory --bin victory -- --test-threads=1— 80 passed, 0 failed (includesshould_emit_mnk_bindingsunit test inplay.rs).cargo clippy --locked -j 2 -p victory-hle -p victory --bins --tests— 0 new warnings in touched files.git diff --check— clean.Keep gamepad prompts by default and isolate controller-only modes (#2836, #2505, #2489)to Isolate controller-only modes from M&K and native mouse (#2836, #2505, #2489)32fe388faetocb11b17de6@steven-seagull27 on GitHub · 2026-11-29 20:12 UTC · original · edited 2026-11-29 20:35 UTC
Rebased onto
cec481f4(cb11b17d):apps/victory/src/run.rsandREADME.mdprompt-hook hunks in favor of3222c1ebalready onmain.live_keyboard_enabled_forincrates/victory-hle/src/modules/gameinput.rsso live keyboard polling stays active inControls::Auto | Controls::Keyboard(preserving keyboard fallback such asEnter-> A on the stand-in pad in defaultAUTOmode when no pad is connected) and is suppressed only in explicit controller-only modes (Controls::Gamepad | Controls::DualSense).gameinput.rs,mnk.rs,lifecycle.rs,mousehook.rs,play.rs, andplay-foxhound.ps1.Re-verified with synthetic unit tests (
victory-hlegameinput: 88 passed / 0 failed / 2 ignored;victorybin: 80 passed / 0 failed),cargo clippy(0 new warnings in touched files), andgit diff --check.cb11b17de6to1bf8c27e1d@steven-seagull27 on GitHub · 2026-11-30 18:40 UTC · original
Rebased cleanly onto latest
main(e1251c31), updating the launcher guard toscripts/play-nvidia.ps1, extending the controller-onlymnkguard to coverbound_buttonsandprompt_keys, and harmonizing with#2583(XInputRoute) and#2734(InputRouting). Re-verifiedvictory-hlelib tests,victorybinary tests, Clippy, andxtask policy --staged.1bf8c27e1dto5b1131e65fView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.