aboutsummaryrefslogtreecommitdiff
path: root/keyboard/planck/planck.c
diff options
context:
space:
mode:
authorErez Zukerman <bulk@ezuk.org>2016-05-15 00:27:32 -0400
committerJack Humbert <jack.humb@gmail.com>2016-05-15 00:27:32 -0400
commit1a8c0dd22d6a2255511d0db6a456315541b5815b (patch)
tree6c7d5e9dc66f9ce864cfe87a72dfb47e6f06d3a7 /keyboard/planck/planck.c
parent79d26f331a275c99f76a30d34752fbd65bb3f335 (diff)
downloadqmk_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.c8
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))
7void matrix_scan_user(void) {} 7void matrix_scan_user(void) {}
8 8
9__attribute__ ((weak)) 9__attribute__ ((weak))
10void process_action_user(keyrecord_t *record) {} 10bool process_action_user(keyrecord_t *record) {
11 return true;
12}
11 13
12__attribute__ ((weak)) 14__attribute__ ((weak))
13void led_set_user(uint8_t usb_led) {} 15void 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
35void process_action_kb(keyrecord_t *record) { 37bool process_action_kb(keyrecord_t *record) {
36 process_action_user(record); 38 return process_action_user(record);
37} 39}
38 40
39void led_set_kb(uint8_t usb_led) { 41void led_set_kb(uint8_t usb_led) {