How do you send reports to the computer when using composite HID+HID? In the Descriptor Tool, I have the mouse as interface 0 and keyboard as interface 1. When enumerated, the device polls for mouse movements and scan the keys, then send the reports to the computer.
case ST_ENUM_ACTIVE:
while(1) {
pollMouse(); //polls for mouse movement
pollKeyboard(); //scan keyboard matrix
sendKeyboardReport();
}
void pollMouse(void) {
//... prepare mouse report
USBHID_sendReport((void *)&mouseReport, HID0_INTFNUM);
}
It doesn't work however. Even though there is mouse movement (information displayed via UART), the mouse on screen will not move. Also, I'm using API v4.0 if that matters.