forked from mirrors/qmk_userspace
Refactor Leader key feature (#19632)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
d10350cd2c
commit
bbf7a20b33
77 changed files with 2457 additions and 1968 deletions
26
tests/leader/leader_sequences.c
Normal file
26
tests/leader/leader_sequences.c
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright 2023 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
void leader_end_user(void) {
|
||||
if (leader_sequence_one_key(KC_A)) {
|
||||
tap_code(KC_1);
|
||||
}
|
||||
|
||||
if (leader_sequence_two_keys(KC_A, KC_B)) {
|
||||
tap_code(KC_2);
|
||||
}
|
||||
|
||||
if (leader_sequence_three_keys(KC_A, KC_B, KC_C)) {
|
||||
tap_code(KC_3);
|
||||
}
|
||||
|
||||
if (leader_sequence_four_keys(KC_A, KC_B, KC_C, KC_D)) {
|
||||
tap_code(KC_4);
|
||||
}
|
||||
|
||||
if (leader_sequence_five_keys(KC_A, KC_B, KC_C, KC_D, KC_E)) {
|
||||
tap_code(KC_5);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue