diff options
author | QMK Bot <hello@qmk.fm> | 2022-06-29 08:17:56 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-06-29 08:17:56 +0000 |
commit | f7eb7926e80e34565c615e517a4dbb636dc82797 (patch) | |
tree | 564deaa83fb2f3e8bf9267c92e2e991ff14368ef /quantum | |
parent | 0151f4c3079f4db6c830f19e25f9537d8f4eff9b (diff) | |
parent | 74bec84740a2cc06e4409d28886fafb6afad1ef6 (diff) | |
download | qmk_firmware-f7eb7926e80e34565c615e517a4dbb636dc82797.tar.gz qmk_firmware-f7eb7926e80e34565c615e517a4dbb636dc82797.zip |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum')
-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 3ecdfccb22..25a89bdba7 100644 --- a/quantum/mousekey.c +++ b/quantum/mousekey.c @@ -74,10 +74,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 # ifndef MK_KINETIC_SPEED @@ -504,3 +500,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 d44f47fc1f..da2edb481a 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 } |