[Bug 45688] Gamepad appears both as dinput and xinput ( eg. Valkyria Chronicles)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Aug 23 07:58:56 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45688

--- Comment #2 from Hans Leidekker <hans at 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?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list