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/preonic | |
| 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/preonic')
| -rw-r--r-- | keyboard/preonic/preonic.c | 8 | ||||
| -rw-r--r-- | keyboard/preonic/preonic.h | 2 |
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)) |
| 14 | void process_action_user(keyrecord_t *record) { | 14 | bool process_action_user(keyrecord_t *record) { |
| 15 | 15 | return true; | |
| 16 | }; | 16 | }; |
| 17 | 17 | ||
| 18 | void matrix_init_kb(void) { | 18 | void 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 | ||
| 39 | void process_action_kb(keyrecord_t *record) { | 39 | bool 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 | ||
| 48 | void matrix_init_user(void); | 48 | void matrix_init_user(void); |
| 49 | void matrix_scan_user(void); | 49 | void matrix_scan_user(void); |
| 50 | void process_action_kb(keyrecord_t *record); | 50 | bool process_action_kb(keyrecord_t *record); |
| 51 | 51 | ||
| 52 | #endif | 52 | #endif |
