[Keyboard] Fix call to `pointing_device_handle_buttons` (#15313)

master
Charly Delay 2021-11-28 00:23:02 +09:00 committed by GitHub
parent b3fc33faf7
commit 0e6548303d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
#ifndef MOUSEKEY_ENABLE #ifndef MOUSEKEY_ENABLE
if (IS_MOUSEKEY_BUTTON(keycode)) { if (IS_MOUSEKEY_BUTTON(keycode)) {
report_mouse_t currentReport = pointing_device_get_report(); 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_set_report(currentReport);
pointing_device_send(); pointing_device_send();
} }