Fixes keyboard being recognized as 2 HID devices

This commit is contained in:
Thomas Altenburger 2016-01-08 13:16:38 +01:00
parent 8488bb6229
commit b29bc2f534

View file

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