forked from mirrors/qmk_firmware
add mouse to shared interface response
This commit is contained in:
parent
eb4793b188
commit
9917211afe
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue