diff options
author | Drashna Jaelre <drashna@live.com> | 2022-06-29 01:16:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 01:16:31 -0700 |
commit | 74bec84740a2cc06e4409d28886fafb6afad1ef6 (patch) | |
tree | b37b39a720fcf154eef5a7edf0255e233c35aaf4 | |
parent | 88086a80b0d1d056674169b3d7d362c820135cef (diff) | |
download | qmk_firmware-74bec84740a2cc06e4409d28886fafb6afad1ef6.tar.gz qmk_firmware-74bec84740a2cc06e4409d28886fafb6afad1ef6.zip |
[Bug] Fix 3 speed mousekey mode (#17500)
-rw-r--r-- | quantum/mousekey.c | 8 | ||||
-rw-r--r-- | quantum/mousekey.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/quantum/mousekey.c b/quantum/mousekey.c index 33d71af083..c5e3f8bcda 100644 --- a/quantum/mousekey.c +++ b/quantum/mousekey.c @@ -70,10 +70,6 @@ uint8_t mk_wheel_interval = MOUSEKEY_WHEEL_INTERVAL; uint8_t mk_wheel_max_speed = MOUSEKEY_WHEEL_MAX_SPEED; uint8_t mk_wheel_time_to_max = MOUSEKEY_WHEEL_TIME_TO_MAX; -bool should_mousekey_report_send(report_mouse_t *mouse_report) { - return mouse_report->x || mouse_report->y || mouse_report->v || mouse_report->h; -} - # ifndef MK_COMBINED static uint8_t move_unit(void) { @@ -499,3 +495,7 @@ static void mousekey_debug(void) { report_mouse_t mousekey_get_report(void) { return mouse_report; } + +bool should_mousekey_report_send(report_mouse_t *mouse_report) { + return mouse_report->x || mouse_report->y || mouse_report->v || mouse_report->h; +} diff --git a/quantum/mousekey.h b/quantum/mousekey.h index 03da5f282a..1714e52ff6 100644 --- a/quantum/mousekey.h +++ b/quantum/mousekey.h @@ -174,6 +174,7 @@ void mousekey_off(uint8_t code); void mousekey_clear(void); void mousekey_send(void); report_mouse_t mousekey_get_report(void); +bool should_mousekey_report_send(report_mouse_t *mouse_report); #ifdef __cplusplus } |