diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2021-07-03 09:50:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 00:50:47 -0700 |
commit | b5c361542efa22aefa5e5868ceb678d4fb8b68b3 (patch) | |
tree | 5a6fe329786a47d7c6ef2da2a617cacd816b7862 | |
parent | 3ab805fc67e95dfb23188bf63c7f5fbb2edcf038 (diff) | |
download | qmk_firmware-b5c361542efa22aefa5e5868ceb678d4fb8b68b3.tar.gz qmk_firmware-b5c361542efa22aefa5e5868ceb678d4fb8b68b3.zip |
mousekey: expose current report to users (#13069)
-rw-r--r-- | quantum/mousekey.c | 2 | ||||
-rw-r--r-- | quantum/mousekey.h | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/quantum/mousekey.c b/quantum/mousekey.c index 99bfd6b96f..c2291fb397 100644 --- a/quantum/mousekey.c +++ b/quantum/mousekey.c @@ -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; } diff --git a/quantum/mousekey.h b/quantum/mousekey.h index 70dc4bb5c5..56c91b5f1b 100644 --- a/quantum/mousekey.h +++ b/quantum/mousekey.h @@ -168,11 +168,12 @@ extern uint8_t mk_time_to_max; extern uint8_t mk_wheel_max_speed; extern uint8_t mk_wheel_time_to_max; -void mousekey_task(void); -void mousekey_on(uint8_t code); -void mousekey_off(uint8_t code); -void mousekey_clear(void); -void mousekey_send(void); +void mousekey_task(void); +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 } |