Browse Source

update the template too

refactor_process_record_kb_user
skullY 4 years ago
parent
commit
b281d88c6f
1 changed files with 7 additions and 9 deletions
  1. +7
    -9
      quantum/template/base/keyboard.c

+ 7
- 9
quantum/template/base/keyboard.c View File

@ -17,34 +17,32 @@
#include "%KEYBOARD%.h"
// Optional override functions below.
// You can leave any or all of these undefined.
// You can leave any or all of these undefined. Remove the ones you don't use.
// These are only required if you want to perform custom actions.
/*
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
}
void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
// put your per-action keyboard code here
// runs for every action, just before processing by the firmware
return process_record_user(keycode, record);
// Return true if key processing should continue as normal
// Return false if key processing should stop here.
return true;
}
bool led_update_kb(led_t led_state) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
return led_update_user(led_state);
// Return true if LED indicator processing should continue as normal
// Return false if LED indicator processing should stop here.
return true;
}
*/

Loading…
Cancel
Save