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: