1
0

Align use of keymap level _kb callbacks (#25774)

This commit is contained in:
Joel Challis
2025-11-11 22:00:28 +00:00
committed by GitHub
parent 8ec3de0f92
commit 98504424b1
13 changed files with 46 additions and 80 deletions

View File

@@ -72,14 +72,7 @@ __attribute__((weak)) void trackball_check_click(bool pressed, report_mouse_t* m
}
}
bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
if (true) {
xprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed);
}
if (!process_record_user(keycode, record)) { return false; }
bool process_record_user(uint16_t keycode, keyrecord_t* record) {
/* If Mousekeys is disabled, then use handle the mouse button
* keycodes. This makes things simpler, and allows usage of
* the keycodes in a consistent manner. But only do this if
@@ -95,6 +88,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
}
pointing_device_set_report(currentReport);
pointing_device_send();
return false;
}
#endif