Skip to content

Commit b4ca000

Browse files
bernibaerCalcProgrammer1
authored andcommitted
Initial support for Corsair K70 CORE TKL Keyboard ID 1b1c:2b01. Volume knob...
1 parent b78a6f4 commit b4ca000

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2ControllerDetect.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ REGISTER_HID_DETECTOR_IP("Corsair K60 RGB PRO Low Profile", DetectCorsai
6262
REGISTER_HID_DETECTOR_IP("Corsair K60 RGB PRO TKL Black", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_K60_RGB_PRO_TKL_B_PID, 1, 0xFF42);
6363
REGISTER_HID_DETECTOR_IP("Corsair K60 RGB PRO TKL White", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_K60_RGB_PRO_TKL_W_PID, 1, 0xFF42);
6464
REGISTER_HID_DETECTOR_IP("Corsair K70 Core RGB", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_K70_CORE_RGB_PID, 1, 0xFF42);
65+
REGISTER_HID_DETECTOR_IP("Corsair K70 Core RGB TKL", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_K70_CORE_RGB_TKL_PID, 1, 0xFF42);
66+
6567
REGISTER_HID_DETECTOR_IP("Corsair K70 RGB PRO", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_K70_RGB_PRO_PID, 1, 0xFF42);
6668
REGISTER_HID_DETECTOR_IP("Corsair K70 RGB PRO V2", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_K70_RGB_PRO_V2_PID, 1, 0xFF42);
6769
REGISTER_HID_DETECTOR_IP("Corsair K70 RGB TKL", DetectCorsairV2HardwareControllers, CORSAIR_VID, CORSAIR_K70_RGB_TKL_PID, 1, 0xFF42);

Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.cpp

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,28 @@ keyboard_keymap_overlay_values corsair_K70_TKL_cs_layout
152152
}
153153
};
154154

155+
156+
keyboard_keymap_overlay_values corsair_K70_CORE_TKL_layout
157+
{
158+
KEYBOARD_SIZE::KEYBOARD_SIZE_TKL,
159+
{
160+
corsair_tkl_values,
161+
{
162+
/* Add more regional layout fixes here */
163+
}
164+
},
165+
{
166+
/*-------------------------------------------------------------------------------------------------------------------------------------*\
167+
| Edit Keys |
168+
| Zone, Row, Column, Value, Name, Alternate Name, OpCode, |
169+
\*-------------------------------------------------------------------------------------------------------------------------------------*/
170+
{ 0, 0, 14, 70, KEY_EN_MEDIA_MUTE, KEY_EN_UNUSED, KEYBOARD_OPCODE_SWAP_ONLY, }, // Swap PRSC with Mute
171+
{ 0, 0, 15, 71, KEY_EN_UNUSED, KEY_EN_UNUSED, KEYBOARD_OPCODE_SWAP_ONLY, }, // Remove SCLK
172+
{ 0, 0, 16, 72, KEY_EN_MEDIA_VOLUME_UP, KEY_EN_UNUSED, KEYBOARD_OPCODE_SWAP_ONLY, }, // Swap PSBK with Volume Potion Up
173+
174+
}
175+
};
176+
155177
keyboard_keymap_overlay_values corsair_k95_layout
156178
{
157179
KEYBOARD_SIZE::KEYBOARD_SIZE_FULL,
@@ -929,6 +951,39 @@ static const corsair_v2_device k70_rgb_tkl_device =
929951
&corsair_K70_TKL_cs_layout
930952
};
931953

954+
/*-------------------------------------------------------------*\
955+
| Corsair K70 Core RGB TKL 1B1C:2B01 |
956+
| |
957+
| Zone "Keyboard" |
958+
| Matrix |
959+
| 6 Rows, 1 Columns |
960+
\*-------------------------------------------------------------*/
961+
static const corsair_v2_zone k70_core_rgb_tkl_zone =
962+
{
963+
ZONE_EN_KEYBOARD,
964+
ZONE_TYPE_MATRIX,
965+
6,
966+
17
967+
};
968+
969+
static const corsair_v2_device k70_core_rgb_tkl_device =
970+
{
971+
CORSAIR_K70_CORE_RGB_TKL_PID,
972+
DEVICE_TYPE_KEYBOARD,
973+
6,
974+
17,
975+
{
976+
&k70_core_rgb_tkl_zone,
977+
nullptr,
978+
nullptr,
979+
nullptr,
980+
nullptr,
981+
nullptr
982+
},
983+
&corsair_K70_CORE_TKL_layout
984+
};
985+
986+
932987
/*-------------------------------------------------------------*\
933988
| Corsair K70 RGB TKL Champion Series 1B1C:1BB9 |
934989
| |
@@ -1411,6 +1466,7 @@ const corsair_v2_device* corsair_v2_device_list_data[] =
14111466
&k60_rgb_pro_tkl_device_b,
14121467
&k60_rgb_pro_tkl_device_w,
14131468
&k70_core_rgb_device,
1469+
&k70_core_rgb_tkl_device,
14141470
&k70_rgb_pro_device,
14151471
&k70_rgb_pro_v2_device,
14161472
&k70_rgb_tkl_device,

Controllers/CorsairPeripheralV2Controller/CorsairPeripheralV2Devices.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ typedef struct
7474
#define CORSAIR_K60_RGB_PRO_TKL_B_PID 0x1BC7
7575
#define CORSAIR_K60_RGB_PRO_TKL_W_PID 0x1BED
7676
#define CORSAIR_K70_CORE_RGB_PID 0x1BFD
77+
#define CORSAIR_K70_CORE_RGB_TKL_PID 0x2B01
7778
#define CORSAIR_K70_RGB_PRO_PID 0x1BC4
7879
#define CORSAIR_K70_RGB_PRO_V2_PID 0x1BB3
7980
#define CORSAIR_K70_RGB_TKL_PID 0x1B73

0 commit comments

Comments
 (0)