Skip to content

Commit

Permalink
Add support for 60HE+ (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-wh authored Jan 31, 2024
1 parent cdecb6e commit f68aeac
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/wooting-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#define WOOTING_TWO_HE_ARM_PID 0x1230
#define WOOTING_60HE_PID 0x1300
#define WOOTING_60HE_ARM_PID 0x1310
#define WOOTING_60HE_PLUS_PID 0x1320
#define WOOTING_UWU_PID 0x1500
#define WOOTING_UWU_RGB_PID 0x1510

Expand Down Expand Up @@ -174,6 +175,16 @@ static void set_meta_wooting_60he_arm(WOOTING_USB_META *device_meta) {
device_meta->uses_small_packets = true;
}

static void set_meta_wooting_60he_plus(WOOTING_USB_META *device_meta) {
device_meta->model = "Wooting 60HE+";
device_meta->device_type = DEVICE_KEYBOARD_60;
device_meta->max_rows = WOOTING_RGB_ROWS;
device_meta->max_columns = 14;
device_meta->led_index_max = WOOTING_TWO_KEY_CODE_LIMIT;
device_meta->v2_interface = true;
device_meta->uses_small_packets = true;
}

static void set_meta_wooting_uwu_rgb(WOOTING_USB_META *device_meta) {
device_meta->model = "Wooting UwU RGB";
device_meta->device_type = DEVICE_KEYPAD_3KEY;
Expand Down Expand Up @@ -349,12 +360,19 @@ bool wooting_usb_find_keyboard() {
printf("Enumerate on Wooting 60HE Successful\n");
#endif
walk_hid_devices(hid_info, set_meta_wooting_60he);
} else if (PID_ALT_CHECK(WOOTING_60HE_ARM_PID)) {
}
if (PID_ALT_CHECK(WOOTING_60HE_ARM_PID)) {
#ifdef DEBUG_LOG
printf("Enumerate on Wooting 60HE (ARM) Successful\n");
#endif
walk_hid_devices(hid_info, set_meta_wooting_60he_arm);
}
if (PID_ALT_CHECK(WOOTING_60HE_PLUS_PID)) {
#ifdef DEBUG_LOG
printf("Enumerate on Wooting 60HE+ Successful\n");
#endif
walk_hid_devices(hid_info, set_meta_wooting_60he_plus);
}

if (PID_ALT_CHECK(WOOTING_UWU_PID)) {
#ifdef DEBUG_LOG
Expand Down

0 comments on commit f68aeac

Please sign in to comment.