aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2016-05-28 15:22:30 -0400
committerGravatar Jack Humbert <jack.humb@gmail.com>2016-05-28 15:22:30 -0400
commit17977a7e24ddab6ca101341b33c8fe7ad13e68f5 (patch)
tree466cc235aecf9f737c13004f1a5c9a251954a6ed /quantum/quantum.c
parent38987d4c1589d2d457459f42e179be24b712be30 (diff)
downloadqmk_firmware-17977a7e24ddab6ca101341b33c8fe7ad13e68f5.tar.gz
process_record implementation (non-breaking for process_action ATM)
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) {
}
__attribute__ ((weak))
+bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
+ return process_record_user(keycode, record);
+}
+
+__attribute__ ((weak))
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ return true;
+}
+
+__attribute__ ((weak))
void leader_start(void) {}
__attribute__ ((weak))
@@ -124,6 +134,9 @@ bool process_record_quantum(keyrecord_t *record) {
keycode = keymap_key_to_keycode(layer_switch_get_layer(key), key);
#endif
+ if (!process_record_kb(keycode, record))
+ return false;
+
// This is how you use actions here
// if (keycode == KC_LEAD) {
// action_t action;