diff options
author | Drashna Jaelre <drashna@live.com> | 2018-12-20 16:54:06 -0800 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2018-12-20 16:54:06 -0800 |
commit | afd5cda4a0d832bacfff319177fe93968f686a11 (patch) | |
tree | 114dd8500a6bcc1878894329aa0ce0edb2b56289 /quantum/process_keycode/process_leader.h | |
parent | 30c3f3b2bd9c68ba8bba644fcfa97152a4834c03 (diff) | |
download | firmware-afd5cda4a0d832bacfff319177fe93968f686a11.tar.gz firmware-afd5cda4a0d832bacfff319177fe93968f686a11.tar.bz2 firmware-afd5cda4a0d832bacfff319177fe93968f686a11.zip |
Fix up process_leader to be a bit more optimized (#4662)
* Fix up process_leader to be a bit more optimized
* Process dual function keys better
* Make leader start a callable function
* Fix per key timer call location
* Add escape if already leading
* Return false for KC_LEAD
* Add documentation
Diffstat (limited to 'quantum/process_keycode/process_leader.h')
-rw-r--r-- | quantum/process_keycode/process_leader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_leader.h b/quantum/process_keycode/process_leader.h index 59c3eed1b..15bccc3f6 100644 --- a/quantum/process_keycode/process_leader.h +++ b/quantum/process_keycode/process_leader.h @@ -24,7 +24,7 @@ bool process_leader(uint16_t keycode, keyrecord_t *record); void leader_start(void); void leader_end(void); - +void qk_leader_start(void); #define SEQ_ONE_KEY(key) if (leader_sequence[0] == (key) && leader_sequence[1] == 0 && leader_sequence[2] == 0 && leader_sequence[3] == 0 && leader_sequence[4] == 0) #define SEQ_TWO_KEYS(key1, key2) if (leader_sequence[0] == (key1) && leader_sequence[1] == (key2) && leader_sequence[2] == 0 && leader_sequence[3] == 0 && leader_sequence[4] == 0) |