https://bugs.winehq.org/show_bug.cgi?id=45688
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- (In reply to Vincent Povirk from comment #1)
xinput controls can be accessed through dinput on Windows, but not all controllers support xinput.
MS has published sample code which uses WMI to test whether a dinput controller supports xinput, and ignore it if so: https://docs.microsoft.com/en-us/windows/desktop/xinput/xinput-and- directinput
I don't think that approach works correctly on Wine.
Support for Win32_PnPEntity has been added recently, so the query should succeed at least. It may not yield any results if your joystick is somehow not detected as a plug and play device.
If I plug in the Xbox 360 controller I have here and run that WMI query I get three results. Two of them identify as a joystick and contain IG_. One is a HID device and the other a Linux event device.
Reporter, can you attach a WINEDEBUG=+wbemprox,+hid,+plugplay,+setupapi trace?