Hi,
So I'm trying to handle gamepads with both XInput and DirectInput.
I want to handle XInput devices with XInput, and other devices with DirectInput.
DirectInput provides a list of
SharpDX.DirectInput.DeviceInstance that contain information such as GUIDs and device names.
The list contains all connected devices, including XInput devices (which is normal).
Now I want to know which of these devices support XInput.
However, in the SharpDX.XInput.Controller instances built with XInput, there are no GUID or product name information.
I can't find how to figure out if a DirectInput.DeviceInstance refers to the same device as a XInput.Controller instance.
In
this article, Microsoft provides a function that checks the XInput compatibility of a device. I understood that they use a "Device ID" provided by XInput and check if it contains the string "IG_".
Is there a way to do the same with SharpDX.XInput? How?