runtime: GameInput stand-in reports its Xbox Series virtual pad as GameInputFamilyXbox360 #2538
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2538
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Asimmimx on GitHub · 2026-11-25 20:17 UTC · original
Commit or build
mainat2b883ea6, dev preset.Summary
build()insrc/startup_stubs/gameinput.cppfills the virtual gamepad'sGameInputDeviceInfowith vendor0x045E, product0x0B12anddeviceFamily = 2at +0x60, with the comment "family: Xbox One". InGameInputDeviceFamily,GameInputFamilyXboxOneis 1 (XboxGIP / XInputHID drivers) andGameInputFamilyXbox360is 2 (XUSB22).045E:0B12is an Xbox Series controller, a GIP device. The field therefore contradicts the stand-in's own vendor/product and its comment. A title that reads the family throughGetDeviceInfo(from the device callback orFindDevice*) sees an Xbox 360 controller.The value dates from the first version of the stand-ins (
e658fe24); no measurement in the docs selects 2.Reproduction
With the extended check from the linked PR:
The check calls
FindDeviceFromObject, thenGetDeviceInfo, and reads +0x60.Observed
gamepad deviceFamily 2, expected 1Expected
1 (
GameInputFamilyXboxOne).Reference
Microsoft GDK documentation for the
GameInputDeviceFamilyenumeration (GameInput.h):GameInputFamilyVirtual= -1,GameInputFamilyXboxOne= 1,GameInputFamilyXbox360= 2,GameInputFamilyHid= 3,GameInputFamilyI8042= 4. The remarks say the value is a member ofGameInputDeviceInfoin GameInput v3 and earlier.Not established
deviceFamily, and what it changes when it does (for example glyphs or input mapping).AI-assisted (Claude Code).