runtime: GameInput stand-in reports its Xbox Series virtual pad as GameInputFamilyXbox360 #2530

Closed
opened 2026-11-25 20:17:40 +00:00 by Asimmimx · 0 comments
Asimmimx commented 2026-11-25 20:17:40 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-25T20:17:40Z.


Commit or build

main at 2b883ea6, dev preset.

Summary

build() in src/startup_stubs/gameinput.cpp fills the virtual gamepad's GameInputDeviceInfo with vendor 0x045E, product 0x0B12 and deviceFamily = 2 at +0x60, with the comment "family: Xbox One". In GameInputDeviceFamily, GameInputFamilyXboxOne is 1 (XboxGIP / XInputHID drivers) and GameInputFamilyXbox360 is 2 (XUSB22). 045E:0B12 is 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 through GetDeviceInfo (from the device callback or FindDevice*) 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:

cmake --build --preset dev --target startup_stub_gameinput startup_gameinput_contracts_check
ctest --preset dev --no-tests=error -R '^startup_gameinput_contracts_check$' -V

The check calls FindDeviceFromObject, then GetDeviceInfo, and reads +0x60.

Observed

gamepad deviceFamily 2, expected 1

Expected

1 (GameInputFamilyXboxOne).

Reference

Microsoft GDK documentation for the GameInputDeviceFamily enumeration (GameInput.h): GameInputFamilyVirtual = -1, GameInputFamilyXboxOne = 1, GameInputFamilyXbox360 = 2, GameInputFamilyHid = 3, GameInputFamilyI8042 = 4. The remarks say the value is a member of GameInputDeviceInfo in GameInput v3 and earlier.

Not established

  • Whether the title reads deviceFamily, and what it changes when it does (for example glyphs or input mapping).

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6612930681 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2538). Originally posted by [Asimmimx](https://github.com/Asimmimx) on 2026-11-25T20:17:40Z. --- ### Commit or build `main` at `2b883ea6`, dev preset. ### Summary `build()` in `src/startup_stubs/gameinput.cpp` fills the virtual gamepad's `GameInputDeviceInfo` with vendor `0x045E`, product `0x0B12` and `deviceFamily = 2` at +0x60, with the comment "family: Xbox One". In `GameInputDeviceFamily`, `GameInputFamilyXboxOne` is 1 (XboxGIP / XInputHID drivers) and `GameInputFamilyXbox360` is 2 (XUSB22). `045E:0B12` is 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 through `GetDeviceInfo` (from the device callback or `FindDevice*`) 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: ``` cmake --build --preset dev --target startup_stub_gameinput startup_gameinput_contracts_check ctest --preset dev --no-tests=error -R '^startup_gameinput_contracts_check$' -V ``` The check calls `FindDeviceFromObject`, then `GetDeviceInfo`, and reads +0x60. ### Observed `gamepad deviceFamily 2, expected 1` ### Expected 1 (`GameInputFamilyXboxOne`). ### Reference Microsoft GDK documentation for the `GameInputDeviceFamily` enumeration (`GameInput.h`): `GameInputFamilyVirtual` = -1, `GameInputFamilyXboxOne` = 1, `GameInputFamilyXbox360` = 2, `GameInputFamilyHid` = 3, `GameInputFamilyI8042` = 4. The remarks say the value is a member of `GameInputDeviceInfo` in GameInput v3 and earlier. ### Not established - Whether the title reads `deviceFamily`, and what it changes when it does (for example glyphs or input mapping). AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#2530
No description provided.