TinyUSB Arduino - any way to send two mouse reports

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Massoud
 
Posts: 1
Joined: Fri Jan 27, 2023 5:42 am

TinyUSB Arduino - any way to send two mouse reports

Post by Massoud »

Hello,

I'm using TinyUSB and trying to make 2 Mice with 2 report descriptors send two reports simultaneously, I can see that there are two HID Mice in device Manager, but when I send two reports with the following code, only the first one seems to move the mouse cursor :
if (usb_hid.ready()) {
usb_hid.sendReport(RID_MOUSE, &mr, sizeof(mr));
usb_hid.sendReport(RID_MOUSE1, &mr1, sizeof(mr1));
}
Is there any way to make both Mouse reports move the cursor one after the other ? I'm trying to achieve a polling rate higher than 1000 Hz by simulating two mice instead of one

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”