diff --git a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp index 88bbaf60..b0e36b6f 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp @@ -64,10 +64,11 @@ REGISTER_HID_DETECTOR_IP("Corsair K60 RGB PRO Low Profile", DetectCorsai /*-----------------------------------------------------------------------------------------------------*\ | Mice | \*-----------------------------------------------------------------------------------------------------*/ +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 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 Dark Core RGB Pro SE (Wired)", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_DARK_CORE_RGB_PRO_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 b198d855..cd202392 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp @@ -44,6 +44,94 @@ keyboard_keymap_overlay_values corsair_K60_layout | CORSAIR DEVICES | \*-------------------------------------------------------------------------*/ +/*-------------------------------------------------------------*\ +| Corsair Dark Core SE 1B1C:1B4B | +| | +| Zone "Scroll Wheel" | +| Single | +| | +| Zone "Side Buttons" | +| Linear | +| 1 Row, 4 Columns | +| | +| Zone "Rear Left" | +| Single | +| | +| Zone "Logo" | +| Single | +| | +| Zone "Rear Right" | +| Single | +| | +| Zone "DPI & Indicator" | +| Linear | +| 1 Row, 4 Columns | +\*-------------------------------------------------------------*/ +static const corsair_v2_zone dark_core_se_scroll_zone = +{ + "Scroll Wheel", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_zone dark_core_se_button_zone = +{ + "Side Buttons", + ZONE_TYPE_LINEAR, + 1, + 4 +}; + +static const corsair_v2_zone dark_core_se_left_zone = +{ + "Rear Left", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_zone dark_core_se_logo_zone = +{ + "Logo", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_zone dark_core_se_right_zone = +{ + "Rear Right", + ZONE_TYPE_SINGLE, + 1, + 1 +}; + +static const corsair_v2_zone dark_core_se_dpi_zone = +{ + "DPI & Indicator Zone", + ZONE_TYPE_LINEAR, + 1, + 4 +}; + +static const corsair_v2_device dark_core_se_device = +{ + CORSAIR_DARK_CORE_RGB_PID, + DEVICE_TYPE_MOUSE, + 1, + 12, + { + &dark_core_se_scroll_zone, + &dark_core_se_button_zone, + &dark_core_se_left_zone, + &dark_core_se_logo_zone, + &dark_core_se_right_zone, + &dark_core_se_dpi_zone + }, + nullptr +}; + /*-------------------------------------------------------------*\ | Corsair Dark Core Pro SE 1B1C:1B7E | | | @@ -446,6 +534,7 @@ const corsair_v2_device* corsair_v2_device_list_data[] = /*-----------------------------------------------------------------*\ | MICE | \*-----------------------------------------------------------------*/ + &dark_core_se_device, &dark_core_pro_se_device, &ironclaw_wireless_device, &m55_device, diff --git a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h index b0c80bb4..a8770713 100644 --- a/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h +++ b/Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h @@ -66,6 +66,7 @@ typedef struct /*-----------------------------------------------------*\ | Corsair V2 Protocol Mice | \*-----------------------------------------------------*/ +#define CORSAIR_DARK_CORE_RGB_PID 0x1B4B #define CORSAIR_DARK_CORE_RGB_PRO_PID 0x1B7E #define CORSAIR_IRONCLAW_WIRELESS_PID 0x1B4C #define CORSAIR_M55_RGB_PRO_PID 0x1B70