aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index c53fb19b4..d9aaafd61 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -13,6 +13,16 @@ bool process_action_kb(keyrecord_t *record) {
13} 13}
14 14
15__attribute__ ((weak)) 15__attribute__ ((weak))
16bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
17 return process_record_user(keycode, record);
18}
19
20__attribute__ ((weak))
21bool process_record_user(uint16_t keycode, keyrecord_t *record) {
22 return true;
23}
24
25__attribute__ ((weak))
16void leader_start(void) {} 26void leader_start(void) {}
17 27
18__attribute__ ((weak)) 28__attribute__ ((weak))
@@ -124,6 +134,9 @@ bool process_record_quantum(keyrecord_t *record) {
124 keycode = keymap_key_to_keycode(layer_switch_get_layer(key), key); 134 keycode = keymap_key_to_keycode(layer_switch_get_layer(key), key);
125 #endif 135 #endif
126 136
137 if (!process_record_kb(keycode, record))
138 return false;
139
127 // This is how you use actions here 140 // This is how you use actions here
128 // if (keycode == KC_LEAD) { 141 // if (keycode == KC_LEAD) {
129 // action_t action; 142 // action_t action;