From 9917211afee5a00c15f7342bcc4c6af7ed60eafb Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Wed, 13 Oct 2021 23:00:45 -0400 Subject: [PATCH] add mouse to shared interface response --- tmk_core/protocol/chibios/usb_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index 63269db093..c9860423b9 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c @@ -584,6 +584,12 @@ static bool usb_request_hook_cb(USBDriver *usbp) { #ifdef SHARED_EP_ENABLE case SHARED_INTERFACE: switch (usbp->setup[2]) { +# ifdef MOUSE_SHARED_EP + case REPORT_ID_MOUSE: + usbSetupTransfer(usbp, (uint8_t *)&mouse_report_blank, sizeof(mouse_report_blank), NULL); + return TRUE; + break; +# endif # ifdef EXTRAKEY_ENABLE case REPORT_ID_SYSTEM: usbSetupTransfer(usbp, (uint8_t *)&extra_report_blank, sizeof(extra_report_blank), NULL);