Commit Graph

9 Commits

Author SHA1 Message Date
Mikkel Krautz
302afdacb3 3rdparty/xinputcheck-src: add Xbox One controller (w/ 3.5 mm jack).
Apparently, this one has a different GUID as well.
2016-08-06 20:23:14 +02:00
Mikkel Krautz
5ca9503d5d 3rdparty/xinputcheck-src: add Xbox One S wireless (non-Bluetooth) and Xbox One Elite wireless.
In my initial testing, I apparently missed that the Xbox One S wireless
controller has a different GUID than a regular Xbox One wireless
controller when used with the Xbox wireless dongle for Windows.

Also, add the GUID for the Xbox One Elite wireless controller, which
also has a different GUID than the regular Xbox One wireless when
used in wireless mode.
2016-08-06 14:15:50 +02:00
Mikkel Krautz
8ee2bbc51c 3rdparty/xinputcheck-src: add Xbox One controller GUIDs to avoid device list querying for Xbox One controllers.
Querying the device list and checking whether IG_ is in the name does
not work on Windows 10 Anniversary Update (1607).

To work around that, we add the GUIDs for all Xbox One controllers.

This should fix the problem for the most common XInput devices for now.

Presumably, Microsoft will fix this later on. But for now, this will do.

The good thing about doing it this way is that it isn't a workaround per
se -- it's an optimization that already exists in the code.

Fixes mumble-voip/mumble#2483
2016-08-04 02:24:11 +02:00
Mikkel Krautz
bc12e8eb7b XInputCheck: add string.h and stdlib.h includes to xinputcheck.cpp. 2016-03-04 01:07:52 +01:00
Mikkel Krautz
cbff56b1d7 XInputCheck: fix missing file reference in the README. 2016-03-04 01:07:51 +01:00
Mikkel Krautz
da12c2bdeb XInputCheck: add comment at the top of the file describing development practices and origin of the code. 2016-03-04 01:07:50 +01:00
Mikkel Krautz
25b88a7444 XInputCheck: add documentation for XInputCheck_IsGuidProductXInputDevice. 2016-03-04 01:07:49 +01:00
Mikkel Krautz
0f8053351b XInputCheck: add XInputCheck_ClearDeviceCache(). 2016-03-04 01:07:43 +01:00
Mikkel Krautz
6f1331b2e6 GlobalShortcutWin: Exclude XInput devices from DirectInput.
This adds a dependency on a small library, XInputCheck, which is
a function abstracted away from SDL. All it does is check whether
a given DirectInput guidProduct is an XInput device.
2016-03-03 16:13:26 +01:00