mousekey: expose current report to users (#13069)

This commit is contained in:
Thomas Weißschuh 2021-07-03 09:50:47 +02:00 committed by GitHub
parent 3ab805fc67
commit b5c361542e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -486,3 +486,5 @@ static void mousekey_debug(void) {
print_dec(mousekey_accel);
print(")\n");
}
report_mouse_t mousekey_get_report(void) { return mouse_report; }

View File

@ -173,6 +173,7 @@ void mousekey_on(uint8_t code);
void mousekey_off(uint8_t code);
void mousekey_clear(void);
void mousekey_send(void);
report_mouse_t mousekey_get_report(void);
#ifdef __cplusplus
}