Skip to content

Commit

Permalink
Crediting @ankostis for rounding carry
Browse files Browse the repository at this point in the history
  • Loading branch information
Wimads authored Mar 5, 2024
1 parent 5beb303 commit 642e264
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maccel/maccel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 642e264

Please sign in to comment.