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/planck/planck.c | |
| parent | 79d26f331a275c99f76a30d34752fbd65bb3f335 (diff) | |
| download | qmk_firmware-1a8c0dd22d6a2255511d0db6a456315541b5815b.tar.gz qmk_firmware-1a8c0dd22d6a2255511d0db6a456315541b5815b.zip | |
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/planck/planck.c')
| -rw-r--r-- | keyboard/planck/planck.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/keyboard/planck/planck.c b/keyboard/planck/planck.c index 446353dbf..da7b3a170 100644 --- a/keyboard/planck/planck.c +++ b/keyboard/planck/planck.c | |||
| @@ -7,7 +7,9 @@ __attribute__ ((weak)) | |||
| 7 | void matrix_scan_user(void) {} | 7 | void matrix_scan_user(void) {} |
| 8 | 8 | ||
| 9 | __attribute__ ((weak)) | 9 | __attribute__ ((weak)) |
| 10 | void process_action_user(keyrecord_t *record) {} | 10 | bool process_action_user(keyrecord_t *record) { |
| 11 | return true; | ||
| 12 | } | ||
| 11 | 13 | ||
| 12 | __attribute__ ((weak)) | 14 | __attribute__ ((weak)) |
| 13 | void led_set_user(uint8_t usb_led) {} | 15 | void led_set_user(uint8_t usb_led) {} |
| @@ -32,8 +34,8 @@ void matrix_scan_kb(void) { | |||
| 32 | matrix_scan_user(); | 34 | matrix_scan_user(); |
| 33 | } | 35 | } |
| 34 | 36 | ||
| 35 | void process_action_kb(keyrecord_t *record) { | 37 | bool process_action_kb(keyrecord_t *record) { |
| 36 | process_action_user(record); | 38 | return process_action_user(record); |
| 37 | } | 39 | } |
| 38 | 40 | ||
| 39 | void led_set_kb(uint8_t usb_led) { | 41 | void led_set_kb(uint8_t usb_led) { |
