diff options
author | Erez Zukerman <bulk@ezuk.org> | 2016-05-15 00:27:32 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-05-15 00:27:32 -0400 |
commit | 1a8c0dd22d6a2255511d0db6a456315541b5815b (patch) | |
tree | 6c7d5e9dc66f9ce864cfe87a72dfb47e6f06d3a7 /keyboard/atomic/atomic.c | |
parent | 79d26f331a275c99f76a30d34752fbd65bb3f335 (diff) |
Leader key implementation (#326)
* implements leader key for planck experimental
* allows override of leader timeout
* adds ability to use the leader key in seq
* fixes leader keycode
* adds chording prototype
* fixes keycode detection
* moves music mode to quantum.c
* disables chording by default
* updates process_action functions to return bool
Diffstat (limited to 'keyboard/atomic/atomic.c')
-rw-r--r-- | keyboard/atomic/atomic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/keyboard/atomic/atomic.c b/keyboard/atomic/atomic.c index b4b2614572..fa218a48f3 100644 --- a/keyboard/atomic/atomic.c +++ b/keyboard/atomic/atomic.c @@ -11,8 +11,9 @@ void matrix_scan_user(void) { } __attribute__ ((weak)) -void process_action_user(keyrecord_t *record) { +bool process_action_user(keyrecord_t *record) { // leave this function blank - it can be defined in a keymap file + return true; } __attribute__ ((weak)) @@ -45,11 +46,11 @@ void matrix_scan_kb(void) { matrix_scan_user(); } -void process_action_kb(keyrecord_t *record) { +bool process_action_kb(keyrecord_t *record) { // put your per-action keyboard code here // runs for every action, just before processing by the firmware - process_action_user(record); + return process_action_user(record); } void led_set_kb(uint8_t usb_led) { |