From 48a4657ab29a2781cf00aef224da932bbee89aca Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Mon, 15 Oct 2018 14:24:17 +0300 Subject: [PATCH] Add ST100 to usb_mac --- src/daemon/usb_mac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/daemon/usb_mac.c b/src/daemon/usb_mac.c index fdc1ace9..4cdb68ca 100644 --- a/src/daemon/usb_mac.c +++ b/src/daemon/usb_mac.c @@ -786,8 +786,10 @@ static usbdevice* add_hid(hid_dev_t handle, io_object_t** rm_notify){ ckb_warn("Got unknown V3 handle (I: %d, O: %d, F: %d)\n", (int)input, (int)output, (int)feature); return 0; } - } else if(IS_SINGLE_EP(&fakekb)) { // ST100 might be different - if(feature == 64) + } else if(IS_SINGLE_EP(&fakekb)) { + if(feature == 64) // Polaris (currently) + handle_idx = 0; + else if (idproduct == 0x0a34 && input == 64 && output == 64) // ST100 handle_idx = 0; else if(input == 6) handle_idx = 1; // This one is most likely useless