Input: ignore all-zero XInput slots until they report input #1429
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1430"
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?
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T17:58:03Z.
Refs #729.
Closes #845.
Summary
seen_input: [bool; PADS]per XInput slot connection inStateso wireless receivers reporting an all-zeroPadState::default()for a switched-off controller stay disconnected (None) rather than enumerating as an activeIGameInputDeviceahead of the keyboard stand-in (FALLBACK).merge_scripted(VICTORY_KEYS) and route scripted keys toFALLBACKwhen no physical pad has reported input, preventing scripted diagnostic keys from latching an idle wireless receiver slot.seen_input[slot] = falsewhen the host slot disconnects (None), while keeping an activated physical pad connected when released back to neutral.Testing
switched_off_receiver_does_not_hide_the_keyboard_stand_incovering idle wireless receiver filtering, keyboard andscriptedstand-in routing, first-press connection transition, return-to-rest persistence, and unplug/replug reset.cargo test -p victory-hle --all-features --locked,cargo clippy --workspace --all-targets --all-features -- -D warnings, andcargo xtask policy.Imported from Marvisak/VIctory. Originally posted by pfhandler on 2026-11-24T20:49:42Z.
Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):
VICTORY_NO_HOST_PAD=1— a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad letsVICTORY_KEYSdrive the title again.VICTORY_MODE=1920x1080— the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:27:43Z.
Automated triage for the maintainers.
Merge candidate. Re-checked on
241c671b: its tree is identical to the previously reviewed1530f018; only the commit message changed (aCo-authored-bytrailer crediting the #845 reporter, as requested in the thread). The earlier reading stands: incrates/victory-hle/src/modules/gameinput.rs,State::pollkeeps a host XInput slot disconnected until its current connection reports non-rest input (seen_input, cleared when the slot readsNone), so a receiver answering for a switched-off pad no longer hides the keyboard stand-in (FALLBACK); an activated pad stays connected at rest, and the three existing tests that seeded an all-zero pad now press a button. Two small points for the maintainer remain: on the real hostHost::keysalready includes theVICTORY_KEYSkeys in diagnostics builds, so the extramerge_pad(.., fallback(scripted))for the stand-in only matters for the test fake; andCloses #729would also close that issue's unrelated Windows 10 root-signature report, so "Refs #729" may be the better link. No other open PR covers the idle-receiver case except integration/bundle branches. Recommending a look, not approving.Thanks for the attribution update; the amended commit carries the trailer and no code change.
CI: passing (
check).Generated by Claude Code
[PR #1430] Input: keep keyboard stand-in pad active while XInput slots are idleto [PR #1430] Input: ignore all-zero XInput slots until they report inputImported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T05:00:50Z.
Updated on
940d32f(1530f018) to also cover #845 at the device-enumeration level: XInput slots reporting onlyPadState::default()(such as a wireless receiver for a switched-off pad) now stay unenumerated until their current connection reports non-rest input, andVICTORY_KEYSscripted inputs route throughFALLBACKwhen no physical pad is active rather than latching an idle receiver slot.Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T07:52:17Z.
The device-enumeration test now covers the unplug and neutral reconnect case I reported and supplied a regression for in #845. The original follow-up commit records that contribution.
Could you retain the attribution for that specific follow-up in the commit that lands?
Co-authored-by: andrewpozdnakov7-jpg [email protected]
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T08:18:52Z.
Thanks @andrewpozdnakov7-jpg — the unplug and neutral-reconnect case in the device-enumeration test comes from your #845 report and regression. I amended the commit to credit you (
241c671b,Co-authored-bytrailer); the code is unchanged.