jpconstantineau / BlueMicro_HID_Arduino_Library

Universal BLE/USB HID Library
Other
21 stars 0 forks source link

Unclear How Mouse Buttons Work #9

Open domiluci opened 1 year ago

domiluci commented 1 year ago

This may be somewhat of a trivial question, but after combing through the examples and code it's unclear how to use mouseButtonPress and mouseReport for both the Left Click and Right Click of the mouse. I see buttons is a uint8_t, so I'm assuming it's a hex value like the keyboard keys. I just can't find the values.

Any help you can give would be great! Thank you!

jpconstantineau commented 1 year ago

Indeed, I could add more examples and documentation on this. Since the implementation uses Tiny USB under the hood, you can have a look at these examples for inspiration.

The values would be buried in the Tiny USB Arduino library implementation.