hle: opt in to GameInput XInput slots with a per-slot system fallback #61
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!61
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-61"
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?
@superboynick on GitHub · 2026-11-27 15:29 UTC · original
superboynick:pr/gamepad-shim→main· +73 −2 · 1 files · 2 commits · merged 2026-11-28 19:01 UTCWhat I tested
RTX 5070 Ti Laptop (12 GB), Windows 11 26100, release build. The controller here is not a wired pad: it is a GameInput synthetic device (
SWD\SYNTHETICGAMEPADENUMwith XboxService), and the system XInput answers 1167 on all four slots for it. The title's pad input goes through the gameinput HLE, which asked the system XInput - so the log showed onlydevice=4(the keyboard stand-in) anddevice=5(the keyboard), no host pad at all.What happened
With
VICTORY_GAMEPAD_SHIM=1the layer loads XInput at run time, triesC:\Program Files\Microsoft GameInput\x64\XInput1_3.dllfirst, then the system 1_4 / 1_3 / 9_1_0, takes the first backend with a pad in any slot, and remembers it for rumble.host pad slot=0 through=...\Microsoft GameInput\x64\XInput1_3.dll,buttons=4(A),left_x=1.0,right_x=1.0.keys=[13]/[164]in the same frames, so both are live at once.What would make it mergeable
Written with an AI assistant.
Added while chasing a report of "the pad does nothing": with
VICTORY_GAMEPAD_LOG=1, each slot says once whichpath answered it, and what the system XInput said when it did not.
That is the difference between a pad the layer cannot see and a pad that is not there — on this machine all four
slots answer 1167 from the system and the same from GameInput's own DLL while the controller is asleep, which reads
identically to "unsupported" in the log as it was. Off by default; nothing changes with it unset.
9a0962a212to992e81040c992e81040cto4e10fb139b4e10fb139bto45031282564503128256to54b32e187fcc65f90203to6e7fb2098e6e7fb2098eto8ea59cd6dc