diff options
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 13 |
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)) |
| 16 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 17 | return process_record_user(keycode, record); | ||
| 18 | } | ||
| 19 | |||
| 20 | __attribute__ ((weak)) | ||
| 21 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 22 | return true; | ||
| 23 | } | ||
| 24 | |||
| 25 | __attribute__ ((weak)) | ||
| 16 | void leader_start(void) {} | 26 | void 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; |
