mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-27 19:09:15 -04:00
Re-add interface check for Corsair driver when not using HID usages. Only set special function control for non-keyboards
This commit is contained in:
1 parent
009a6ccd2a
commit
bd4f3728f6
2 files changed
+5
-2
No files matched your search
@@ -30,7 +30,6 @@ CorsairPeripheralController::CorsairPeripheralController(hid_device* dev_handle)
|
||||
|
||||
ReadFirmwareInfo();
|
||||
|
||||
SpecialFunctionControl();
|
||||
LightingControl();
|
||||
}
|
||||
|
||||
@@ -346,6 +345,7 @@ void CorsairPeripheralController::ReadFirmwareInfo()
|
||||
|
||||
case 0xC1:
|
||||
type = DEVICE_TYPE_MOUSE;
|
||||
SpecialFunctionControl();
|
||||
break;
|
||||
|
||||
case 0xC2:
|
||||
@@ -356,10 +356,12 @@ void CorsairPeripheralController::ReadFirmwareInfo()
|
||||
{
|
||||
case 0x0A34:
|
||||
type = DEVICE_TYPE_HEADSET_STAND;
|
||||
SpecialFunctionControl();
|
||||
break;
|
||||
|
||||
default:
|
||||
type = DEVICE_TYPE_MOUSEMAT;
|
||||
SpecialFunctionControl();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user