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 /tmk_core/common/action.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 'tmk_core/common/action.c')
| -rw-r--r-- | tmk_core/common/action.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 081e90b2d..c026b96d9 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
| @@ -70,7 +70,9 @@ void process_action_nocache(keyrecord_t *record) | |||
| 70 | #endif | 70 | #endif |
| 71 | 71 | ||
| 72 | __attribute__ ((weak)) | 72 | __attribute__ ((weak)) |
| 73 | void process_action_kb(keyrecord_t *record) {} | 73 | bool process_action_quantum(keyrecord_t *record) { |
| 74 | return true; | ||
| 75 | } | ||
| 74 | 76 | ||
| 75 | void process_action(keyrecord_t *record) | 77 | void process_action(keyrecord_t *record) |
| 76 | { | 78 | { |
| @@ -89,7 +91,8 @@ void process_action(keyrecord_t *record) | |||
| 89 | } | 91 | } |
| 90 | #endif | 92 | #endif |
| 91 | 93 | ||
| 92 | process_action_kb(record); | 94 | if (!process_action_quantum(record)) |
| 95 | return; | ||
| 93 | 96 | ||
| 94 | action_t action = store_or_get_action(event.pressed, event.key); | 97 | action_t action = store_or_get_action(event.pressed, event.key); |
| 95 | dprint("ACTION: "); debug_action(action); | 98 | dprint("ACTION: "); debug_action(action); |
