Remove motion_to_mouse() function from keyball lib

No longer used.
This commit is contained in:
James Young 2024-06-13 03:48:38 -07:00
parent 75b745a4cd
commit 6451272edb
No known key found for this signature in database
GPG Key ID: 87CBD151019773A8

View File

@ -208,14 +208,6 @@ __attribute__((weak)) void keyball_on_apply_motion_to_mouse_scroll(keyball_motio
#endif #endif
} }
static void motion_to_mouse(keyball_motion_t *m, report_mouse_t *r, bool is_left, bool as_scroll) {
if (as_scroll) {
keyball_on_apply_motion_to_mouse_scroll(m, r, is_left);
} else {
keyball_on_apply_motion_to_mouse_move(m, r, is_left);
}
}
static inline bool should_report(void) { static inline bool should_report(void) {
uint32_t now = timer_read32(); uint32_t now = timer_read32();
#if defined(KEYBALL_REPORTMOUSE_INTERVAL) && KEYBALL_REPORTMOUSE_INTERVAL > 0 #if defined(KEYBALL_REPORTMOUSE_INTERVAL) && KEYBALL_REPORTMOUSE_INTERVAL > 0