Skip to content

Commit

Permalink
Prevent the SPEEDLINK COMPETITION PRO joystick from switching into An…
Browse files Browse the repository at this point in the history
…droid controller mode when enumerated over HID on Windows 10.
  • Loading branch information
slouken committed Aug 22, 2019
1 parent dd29abb commit 5c15e81
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/hidapi/windows/hid.c
Expand Up @@ -298,8 +298,19 @@ int HID_API_EXPORT hid_exit(void)

int hid_blacklist(unsigned short vendor_id, unsigned short product_id)
{
return vendor_id == 0x1B1C && // (Corsair)
product_id == 0x1B3D; // Gaming keyboard? Causes deadlock when asking for device details
// Corsair Gaming keyboard - Causes deadlock when asking for device details
if ( vendor_id == 0x1B1C && product_id == 0x1B3D )
{
return 1;
}

// SPEEDLINK COMPETITION PRO - turns into an Android controller when enumerated
if ( vendor_id == 0x0738 && product_id == 0x2217 )
{
return 1;
}

return 0;
}

struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id)
Expand Down

0 comments on commit 5c15e81

Please sign in to comment.