We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f427c9 commit 5acd122Copy full SHA for 5acd122
libraries/USB/src/USBHIDMouse.cpp
@@ -88,5 +88,8 @@ bool USBHIDMouse::isPressed(uint8_t b){
88
return false;
89
}
90
91
+void USBHIDMouse::sendReport(hid_mouse_report_t *report){
92
+ hid.SendReport(HID_REPORT_ID_MOUSE, report, sizeof(*report));
93
+}
94
95
#endif /* CONFIG_TINYUSB_HID_ENABLED */
libraries/USB/src/USBHIDMouse.h
@@ -46,6 +46,7 @@ class USBHIDMouse: public USBHIDDevice {
46
void press(uint8_t b = MOUSE_LEFT); // press LEFT by default
47
void release(uint8_t b = MOUSE_LEFT); // release LEFT by default
48
bool isPressed(uint8_t b = MOUSE_LEFT); // check LEFT by default
49
+ void sendReport(hid_mouse_report_t *report);
50
51
// internal use
52
uint16_t _onGetDescriptor(uint8_t* buffer);
0 commit comments