diff --git a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp index 928196ad..3657bb98 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp @@ -70,6 +70,8 @@ REGISTER_HID_DETECTOR_IP("Corsair K70 RGB TKL Champion Series", DetectCorsai REGISTER_HID_DETECTOR_IP("Corsair Dark Core RGB SE (Wired)", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_DARK_CORE_RGB_PID, 1, 0xFF42); REGISTER_HID_DETECTOR_IP("Corsair Dark Core RGB Pro SE (Wired)", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_DARK_CORE_RGB_PRO_PID, 1, 0xFF42); REGISTER_HID_DETECTOR_IP("Corsair Ironclaw Wireless (Wired)", DetectCorsairV2SoftwareControllers, CORSAIR_VID, CORSAIR_IRONCLAW_WIRELESS_PID, 1, 0xFF42); +REGISTER_HID_DETECTOR_IP("Corsair Katar Pro", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_KATAR_PRO_PID, 1, 0xFF42); +REGISTER_HID_DETECTOR_IP("Corsair Katar Pro XT", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_KATAR_PRO_XT_PID, 1, 0xFF42); REGISTER_HID_DETECTOR_IP("Corsair M55 RGB PRO", DetectCorsairV2SoftwareControllers, CORSAIR_VID, CORSAIR_M55_RGB_PRO_PID, 1, 0xFF42); REGISTER_HID_DETECTOR_IP("Corsair M65 Ultra RGB (Wired)", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_M65_ULTRA_RGB_PID, 1, 0xFF42); REGISTER_HID_DETECTOR_IP("Corsair Slipstream Wireless Receiver", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_SLIPSTREAM_WIRELESS_PID, 1, 0xFF42); diff --git a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp index 59a00c28..e8cf3bd0 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp @@ -345,6 +345,92 @@ static const corsair_v2_device ironclaw_wireless_device = nullptr }; +/*-------------------------------------------------------------*\ +| Corsair Katar Pro 1B1C:1B93 | +| | +| Zone "Scroll Wheel" | +| Single | +| | +| Zone "DPI" | +| Single | +| | +\*-------------------------------------------------------------*/ +static const corsair_v2_zone katar_pro_scroll_zone = +{ + "Scroll Wheel", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_zone katar_pro_dpi_zone = +{ + "DPI", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_device katar_pro_device = +{ + CORSAIR_KATAR_PRO_PID, + DEVICE_TYPE_MOUSE, + 1, + 2, + { + &katar_pro_scroll_zone, + &katar_pro_dpi_zone, + nullptr, + nullptr, + nullptr, + nullptr + }, + nullptr +}; + +/*-------------------------------------------------------------*\ +| Corsair Katar Pro XT 1B1C:1BAC | +| | +| Zone "Scroll Wheel" | +| Single | +| | +| Zone "DPI" | +| Single | +| | +\*-------------------------------------------------------------*/ +static const corsair_v2_zone katar_pro_xt_scroll_zone = +{ + "Scroll Wheel", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_zone katar_pro_xt_dpi_zone = +{ + "DPI", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_device katar_pro_xt_device = +{ + CORSAIR_KATAR_PRO_XT_PID, + DEVICE_TYPE_MOUSE, + 1, + 2, + { + &katar_pro_xt_scroll_zone, + &katar_pro_xt_dpi_zone, + nullptr, + nullptr, + nullptr, + nullptr + }, + nullptr +}; + /*-------------------------------------------------------------*\ | Corsair K55 RGB Pro 1B1C:1BA4 | | | @@ -694,6 +780,8 @@ const corsair_v2_device* corsair_v2_device_list_data[] = &dark_core_se_device, &dark_core_pro_se_device, &ironclaw_wireless_device, + &katar_pro_device, + &katar_pro_xt_device, &m55_device, &m65_ultra_rgb_device, diff --git a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h index ced88ea1..eb0c583a 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h @@ -72,6 +72,8 @@ typedef struct #define CORSAIR_DARK_CORE_RGB_PID 0x1B4B #define CORSAIR_DARK_CORE_RGB_PRO_PID 0x1B7E #define CORSAIR_IRONCLAW_WIRELESS_PID 0x1B4C +#define CORSAIR_KATAR_PRO_PID 0x1B93 +#define CORSAIR_KATAR_PRO_XT_PID 0x1BAC #define CORSAIR_M55_RGB_PRO_PID 0x1B70 #define CORSAIR_M65_ULTRA_RGB_PID 0x1BB5 #define CORSAIR_SLIPSTREAM_WIRELESS_PID 0x1BA6