diff options
author | Drashna Jaelre <drashna@drashna.net> | 2023-04-01 11:01:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 19:01:46 +0100 |
commit | bf986579dd6b0d503e8b7de18858e0713cd9c20b (patch) | |
tree | 5c6c8a2bd0358e13f76ba490c527e0528d0cce96 /keyboards/molecule | |
parent | 9359504255236cce74c601554783ac5ce6f44fa9 (diff) |
Fixup Pointing device functions (#20311)
Diffstat (limited to 'keyboards/molecule')
-rw-r--r-- | keyboards/molecule/adns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/molecule/adns.c b/keyboards/molecule/adns.c index be40cf7ea7..96fc83ee0b 100644 --- a/keyboards/molecule/adns.c +++ b/keyboards/molecule/adns.c @@ -237,11 +237,11 @@ motion_delta_t readSensor(void) { return delta; } -void pointing_device_task(void) { +bool pointing_device_task(void) { motion_delta_t delta = readSensor(); report_mouse_t report = pointing_device_get_report(); - + if(delta.motion_ind) { // clamp deltas from -127 to 127 report.x = delta.delta_x < -127 ? -127 : delta.delta_x > 127 ? 127 : delta.delta_x; @@ -250,5 +250,5 @@ void pointing_device_task(void) { } pointing_device_set_report(report); - pointing_device_send(); + return pointing_device_send(); } |