commit: 0e6548303d85103feb8620836f51bc4f506c743f
parent b3fc33faf79a0af332f4725693623112ecad86d1
Author: Charly Delay <0xcharly@users.noreply.github.com>
Date: Sun, 28 Nov 2021 00:23:02 +0900
[Keyboard] Fix call to `pointing_device_handle_buttons` (#15313)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {
#ifndef MOUSEKEY_ENABLE
if (IS_MOUSEKEY_BUTTON(keycode)) {
report_mouse_t currentReport = pointing_device_get_report();
- currentReport.buttons = pointing_device_handle_buttons(record->event.pressed, keycode - KC_MS_BTN1);
+ currentReport.buttons = pointing_device_handle_buttons(currentReport.buttons, record->event.pressed, keycode - KC_MS_BTN1);
pointing_device_set_report(currentReport);
pointing_device_send();
}