diff options
author | Drashna Jaelre <drashna@live.com> | 2021-06-25 20:57:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 20:57:48 -0700 |
commit | 79cc6ce2d0d860680834e9b0cadfbe42e789fa0c (patch) | |
tree | 57dcee31d3b44affa45254a4819e7fe52b83efa2 /keyboards/ploopyco/trackball/trackball.c | |
parent | 6ef0419bb0ec97131c1a4089540ac85b2c54cfab (diff) |
[Keyboard] Bugfixes and Readme additions for PloopyCo devices (#13043)
Diffstat (limited to 'keyboards/ploopyco/trackball/trackball.c')
-rw-r--r-- | keyboards/ploopyco/trackball/trackball.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/keyboards/ploopyco/trackball/trackball.c b/keyboards/ploopyco/trackball/trackball.c index b9c29b54ee..7190209979 100644 --- a/keyboards/ploopyco/trackball/trackball.c +++ b/keyboards/ploopyco/trackball/trackball.c @@ -246,7 +246,6 @@ void pointing_device_init(void) { opt_encoder_init(); } -bool has_report_changed(report_mouse_t new, report_mouse_t old) { return (new.buttons != old.buttons) || (new.x && new.x != old.x) || (new.y && new.y != old.y) || (new.h && new.h != old.h) || (new.v && new.v != old.v); } void pointing_device_task(void) { report_mouse_t mouse_report = pointing_device_get_report(); @@ -269,27 +268,10 @@ void pointing_device_task(void) { pointing_device_send(); } -void pointing_device_send(void) { - static report_mouse_t old_report = {}; - report_mouse_t mouseReport = pointing_device_get_report(); - - // If you need to do other things, like debugging, this is the place to do it. - if (has_report_changed(mouseReport, old_report)) { - host_mouse_send(&mouseReport); - } - - // send it and 0 it out except for buttons, so those stay until they are explicity over-ridden using update_pointing_device - mouseReport.x = 0; - mouseReport.y = 0; - mouseReport.v = 0; - mouseReport.h = 0; - pointing_device_set_report(mouseReport); - old_report = mouseReport; -} - void eeconfig_init_kb(void) { keyboard_config.dpi_config = PLOOPY_DPI_DEFAULT; eeconfig_update_kb(keyboard_config.raw); + eeconfig_init_user(); } void matrix_init_kb(void) { |