Input: ignore all-zero XInput slots until they report input #1430
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
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
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
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/Marvisak--VIctory!1430
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1430/head"
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?
@fuzeofficlal on GitHub · 2026-11-24 17:58 UTC · original
fuzeofficlal:fix/hle-gameinput-idle-xinput-fallback-729→main· +136 −13 · 1 files · 1 commits · merged 2026-11-25 21:50 UTCRefs #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.github-bot referenced this pull request2026-11-26 04:59:07 +00:00
@pfhandler on GitHub · 2026-11-24 20:49 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 01:27 UTC · original · edited 2026-11-25 09:17 UTC
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
@fuzeofficlal on GitHub · 2026-11-25 05:00 UTC · original
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.@andrewpozdnakov7-jpg on GitHub · 2026-11-25 07:52 UTC · original
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]
@fuzeofficlal on GitHub · 2026-11-25 08:18 UTC · original
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.