Pārlūkot izejas kodu

hidapi: Blacklist the Razer Lycosa keyboard from enumeration.

It's not a joystick and it hangs device enumeration.
Ryan C. Gordon 5 gadi atpakaļ
vecāks
revīzija
eaaa809e40
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      src/hidapi/windows/hid.c

+ 6 - 0
src/hidapi/windows/hid.c

@@ -320,6 +320,12 @@ int hid_blacklist(unsigned short vendor_id, unsigned short product_id)
 		return 1;
 		return 1;
 	}
 	}
 
 
+	// Razer Lycosa Gaming keyboard - Causes deadlock when asking for device details
+	if ( vendor_id == 0x1532 && product_id == 0x0109 )
+	{
+		return 1;
+	}
+
 	// SPEEDLINK COMPETITION PRO - turns into an Android controller when enumerated
 	// SPEEDLINK COMPETITION PRO - turns into an Android controller when enumerated
 	if ( vendor_id == 0x0738 && product_id == 0x2217 )
 	if ( vendor_id == 0x0738 && product_id == 0x2217 )
 	{
 	{