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 99bfd6b96..c2291fb39 100644 --- a/quantum/mousekey.c +++ b/quantum/mousekey.c | |||
@@ -486,3 +486,5 @@ static void mousekey_debug(void) { | |||
486 | print_dec(mousekey_accel); | 486 | print_dec(mousekey_accel); |
487 | print(")\n"); | 487 | print(")\n"); |
488 | } | 488 | } |
489 | |||
490 | report_mouse_t mousekey_get_report(void) { return mouse_report; } | ||
diff --git a/quantum/mousekey.h b/quantum/mousekey.h index 70dc4bb5c..56c91b5f1 100644 --- a/quantum/mousekey.h +++ b/quantum/mousekey.h | |||
@@ -168,11 +168,12 @@ extern uint8_t mk_time_to_max; | |||
168 | extern uint8_t mk_wheel_max_speed; | 168 | extern uint8_t mk_wheel_max_speed; |
169 | extern uint8_t mk_wheel_time_to_max; | 169 | extern uint8_t mk_wheel_time_to_max; |
170 | 170 | ||
171 | void mousekey_task(void); | 171 | void mousekey_task(void); |
172 | void mousekey_on(uint8_t code); | 172 | void mousekey_on(uint8_t code); |
173 | void mousekey_off(uint8_t code); | 173 | void mousekey_off(uint8_t code); |
174 | void mousekey_clear(void); | 174 | void mousekey_clear(void); |
175 | void mousekey_send(void); | 175 | void mousekey_send(void); |
176 | report_mouse_t mousekey_get_report(void); | ||
176 | 177 | ||
177 | #ifdef __cplusplus | 178 | #ifdef __cplusplus |
178 | } | 179 | } |