aboutsummaryrefslogtreecommitdiff
path: root/quantum/template/template.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 /quantum/template/template.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 'quantum/template/template.c')
-rw-r--r--quantum/template/template.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/quantum/template/template.c b/quantum/template/template.c
index 6050a2d20..649072eb2 100644
--- a/quantum/template/template.c
+++ b/quantum/template/template.c
@@ -11,8 +11,9 @@ void matrix_scan_user(void) {
11} 11}
12 12
13__attribute__ ((weak)) 13__attribute__ ((weak))
14void process_action_user(keyrecord_t *record) { 14bool process_action_user(keyrecord_t *record) {
15 // leave this function blank - it can be defined in a keymap file 15 // leave this function blank - it can be defined in a keymap file
16 return true;
16} 17}
17 18
18__attribute__ ((weak)) 19__attribute__ ((weak))
@@ -34,11 +35,11 @@ void matrix_scan_kb(void) {
34 matrix_scan_user(); 35 matrix_scan_user();
35} 36}
36 37
37void process_action_kb(keyrecord_t *record) { 38bool process_action_kb(keyrecord_t *record) {
38 // put your per-action keyboard code here 39 // put your per-action keyboard code here
39 // runs for every action, just before processing by the firmware 40 // runs for every action, just before processing by the firmware
40 41
41 process_action_user(record); 42 return process_action_user(record);
42} 43}
43 44
44void led_set_kb(uint8_t usb_led) { 45void led_set_kb(uint8_t usb_led) {