summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorNathan Sharfi <me@ngalt.com>2016-05-30 15:45:17 -0700
committerNathan Sharfi <me@ngalt.com>2016-05-30 15:45:17 -0700
commit222e8f031cef1d53c4d4ea33b3970193fcd070fa (patch)
tree0e10f397d2bf4ed5a3aced723fb3e97b09875d49 /quantum/quantum.c
parent13810e4822d57553caa5aea537af7e80ad701589 (diff)
parent8ee9be11dee3db265cd8a0cc22a8fe40f6067820 (diff)
Merge branch 'master' of github.com:jackhumbert/qmk_firmware
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 c53fb19b4b..d9aaafd616 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;