2023-05-21 12:45 AM
Hi,
Defining a host of an HID wired mouse, on an stm32f4 MCU works great.
Trying to use a wireless mouse doesn't work at all.
The wireless mouse comes in a pair with a keyboard.
Pressing a button on the wireless keyboard works well but clicking/moving the mouse provides no result.
Did someone encounter a similar issue?
Thanks guys!
2023-05-22 07:36 AM
> The wireless mouse comes in a pair with a keyboard.
Then the USB adapter of this thing is a composite device with at least two functions.
You need to parse the descriptors and poll both mouse and keyboard functions' endpoints.
The 1st function usually is the keyboard, this is why it works for you.
The report structure of these wireless mice may be more complicated that the "legacy" mouse in the ST examples. You'll need to read and parse the HID report descriptor.