aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ploopyco
diff options
context:
space:
mode:
authorCharly Delay <0xcharly@users.noreply.github.com>2021-11-28 00:23:02 +0900
committerGitHub <noreply@github.com>2021-11-27 07:23:02 -0800
commit0e6548303d85103feb8620836f51bc4f506c743f (patch)
tree79dde7d92e484d2395754ef493b51ef98d91a2f6 /keyboards/ploopyco
parentb3fc33faf79a0af332f4725693623112ecad86d1 (diff)
downloadqmk_firmware-0e6548303d85103feb8620836f51bc4f506c743f.tar.gz
qmk_firmware-0e6548303d85103feb8620836f51bc4f506c743f.zip
[Keyboard] Fix call to `pointing_device_handle_buttons` (#15313)
Diffstat (limited to 'keyboards/ploopyco')
-rw-r--r--keyboards/ploopyco/trackball/trackball.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/ploopyco/trackball/trackball.c b/keyboards/ploopyco/trackball/trackball.c
index e2a6e4ed5..da4bbf224 100644
--- a/keyboards/ploopyco/trackball/trackball.c
+++ b/keyboards/ploopyco/trackball/trackball.c
@@ -158,7 +158,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
158#ifndef MOUSEKEY_ENABLE 158#ifndef MOUSEKEY_ENABLE
159 if (IS_MOUSEKEY_BUTTON(keycode)) { 159 if (IS_MOUSEKEY_BUTTON(keycode)) {
160 report_mouse_t currentReport = pointing_device_get_report(); 160 report_mouse_t currentReport = pointing_device_get_report();
161 currentReport.buttons = pointing_device_handle_buttons(record->event.pressed, keycode - KC_MS_BTN1); 161 currentReport.buttons = pointing_device_handle_buttons(currentReport.buttons, record->event.pressed, keycode - KC_MS_BTN1);
162 pointing_device_set_report(currentReport); 162 pointing_device_set_report(currentReport);
163 pointing_device_send(); 163 pointing_device_send();
164 } 164 }