aboutsummaryrefslogtreecommitdiff
path: root/keyboard/preonic
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/preonic
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/preonic')
-rw-r--r--keyboard/preonic/preonic.c8
-rw-r--r--keyboard/preonic/preonic.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/keyboard/preonic/preonic.c b/keyboard/preonic/preonic.c
index 211f8d029..13e05c65a 100644
--- a/keyboard/preonic/preonic.c
+++ b/keyboard/preonic/preonic.c
@@ -11,8 +11,8 @@ 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 15 return true;
16}; 16};
17 17
18void matrix_init_kb(void) { 18void matrix_init_kb(void) {
@@ -36,8 +36,8 @@ void matrix_scan_kb(void) {
36 matrix_scan_user(); 36 matrix_scan_user();
37}; 37};
38 38
39void process_action_kb(keyrecord_t *record) { 39bool process_action_kb(keyrecord_t *record) {
40 process_action_user(record); 40 return process_action_user(record);
41} 41}
42 42
43#ifdef BACKLIGHT_ENABLE 43#ifdef BACKLIGHT_ENABLE
diff --git a/keyboard/preonic/preonic.h b/keyboard/preonic/preonic.h
index 030acdadb..2406a11d7 100644
--- a/keyboard/preonic/preonic.h
+++ b/keyboard/preonic/preonic.h
@@ -47,6 +47,6 @@
47 47
48void matrix_init_user(void); 48void matrix_init_user(void);
49void matrix_scan_user(void); 49void matrix_scan_user(void);
50void process_action_kb(keyrecord_t *record); 50bool process_action_kb(keyrecord_t *record);
51 51
52#endif 52#endif