Fixes keyboard being recognized as 2 HID devices
This commit is contained in:
parent
8488bb6229
commit
b29bc2f534
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue