Open
Description
Is there any chance you can give me some pointers on modifying this code to a mouse? I tried it without success. As a summary, I have done the following:
- set class to 0x2580 in the server
- match HID report format to that of HID mouse on both the server and client.
As for the rest, I followed all the steps in your tutorial and the application is able to run without crashing. The mouse cursor just doesn't respond. Is there anything I am missing?
Thanks for your help in advance.
Metadata
Metadata
Assignees
Labels
No labels
Activity
yaptb commentedon Jan 15, 2017
I am by no means an expert at this stuff, but I am guessing that the payload for a HID mouse event report will be different from a keyboard one, so you'll need to consult the HID documentation to see how to build this,
Here are the HID specs: http://www.usb.org/developers/hidpage#HID_Usage
It also looks like adafruit have something you might be able to adapt: https://learn.adafruit.com/introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/sending-keys-via-serial