From 642e26488345466b315f4a2926df3a93fe338f6c Mon Sep 17 00:00:00 2001 From: Wimads <50098220+Wimads@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:44:59 +0100 Subject: [PATCH] Crediting @ankostis for rounding carry --- maccel/maccel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/maccel/maccel.c b/maccel/maccel.c index 3a773e4..66706d7 100644 --- a/maccel/maccel.c +++ b/maccel/maccel.c @@ -97,6 +97,7 @@ void maccel_toggle_enabled(void) { #define CONSTRAIN_REPORT(val) (mouse_xy_report_t) _CONSTRAIN(val, XY_REPORT_MIN, XY_REPORT_MAX) report_mouse_t pointing_device_task_maccel(report_mouse_t mouse_report) { + // rounding carry to recycling dropped floats from int mouse reports, to smoothen low speed movements (credit @ankostis) static float rounding_carry_x = 0; static float rounding_carry_y = 0; // time since last mouse report: