Merge pull request #252 from keyboardio/h/mousekeys/separate-report-abstraction

hid: Wrap Mouse.releaseAll() and Mouse.sendReport()
pull/258/head
Jesse Vincent 7 years ago committed by GitHub
commit 0870a2d560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save