hid: Wrap Mouse.releaseAll() and Mouse.sendReport()

Built on top of keyboardio/KeyboardioHID#14, required for
keyboardio/Kaleidoscope-MouseKeys#10.

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/252/head
Gergely Nagy 7 years ago
parent 75a16eeb96
commit 2bc62cb8b9

@ -151,6 +151,14 @@ void releaseMouseButtons(uint8_t buttons) {
Mouse.release(buttons);
}
void releaseAllMouseButtons(void) {
Mouse.releaseAll();
}
void sendMouseReport(void) {
Mouse.sendReport();
}
/** SingleAbsolute mouse (grapahics tablet) events */
void initializeAbsoluteMouse() {

@ -38,6 +38,8 @@ void moveMouse(signed char x, signed char y, signed char wheel);
void clickMouseButtons(uint8_t buttons);
void pressMouseButtons(uint8_t buttons);
void releaseMouseButtons(uint8_t buttons);
void releaseAllMouseButtons(void);
void sendMouseReport(void);
void initializeAbsoluteMouse();

Loading…
Cancel
Save