Fixes keyboard being recognized as 2 HID devices
authorThomas Altenburger <mister.helmut@gmail.com>
Fri, 8 Jan 2016 12:16:38 +0000 (13:16 +0100)
committerThomas Altenburger <mister.helmut@gmail.com>
Fri, 8 Jan 2016 12:16:38 +0000 (13:16 +0100)
Source/OpenTK/Platform/Windows/WinRawJoystick.cs

index 455dfe528cbdd3c426b8935968a477745cf263b5..82f13c60e6c4d37b6d03bce0dfec0064a7ff9fcc 100644 (file)
@@ -261,7 +261,7 @@ namespace OpenTK.Platform.Windows
 
                     // This is a new device, query its capabilities and add it
                     // to the device list
-                    if (!QueryDeviceCaps(device))
+                    if (!QueryDeviceCaps(device) && !is_xinput)
                     {
                         continue;
                     }
@@ -611,6 +611,8 @@ namespace OpenTK.Platform.Windows
                         }
                     }
                 }
+                else
+                    return false;
             }
             finally
             {