microsoft / GDK

Microsoft Public GDK
http://aka.ms/gamedevdocs
Other
1.48k stars 99 forks source link

IGameInputDevice.GetDeviceInfo returns incomplete data on Windows 10 #35

Open RobinLe1402 opened 1 year ago

RobinLe1402 commented 1 year ago

No matter what controller I try (XBox One, XBox 360, a non-Microsoft gamepad) - the data returned by IGameInputDevice::GetDeviceInfo is always incomplete.

For one thing, displayName and deviceString are always set to zero: Screenshot: XBox One controller

Is the GDK as a whole even meant to be used on Windows at this point? I feel like I'm in a Microsoft-internal repo. All the unimplemented functions don't help.

DJm00n commented 9 months ago

I believe that most of these fields get only filled for GameInputDeviceInfo.deviceFamily == GameInputFamilyHid devices which support itself

is not yet implemented.

🙃

phantomsixthplayer commented 9 months ago

I am also experiencing this issue.

Xbox Wireless Adapter for Windows 10:
  Display Name: Xbox Wireless Adapter for Windows
  Device Instance Path: USB\VID_045E&PID_02FE\200142
  Driver Version: 1.0.46.1

Gamepad:
  Model No: 1914 (QAS-00003) - Xbox Wireless Controller - Robot White
  Display Name: XINPUT compatible HID device
  Device Instance Path: HID\VID_045E&PID_0B12&IG_00\7&1E02870D&10&0000
  Driver Version: 10.0.19041.3031
  Product Name: Controller (Xbox One For Windows)
  Instance Guid: {170c5400-59e9-11ee-8001-444553540000}
  Vendor Id: 1118
  Product Id: 2834

Environment information:
  Edition: Windows 10 Pro
  Version: 22H2
  Installed on: 9/‎01/‎2022
  OS build: 19045.3448
  Experience: Windows Feature Experience Pack 1000.19044.1000.0

image

CDMcGwire commented 6 months ago

I believe DJm00n is correct in regards to most of the fields, but it seems incorrect that fields like "displayName" are coming up NULL. In my case, every device recognized by GameInput reports a NULL value in the displayName field, even mice and keyboards.