logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

leader_sequences.c (548B)


  1. // Copyright 2023 QMK
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "quantum.h"
  4. void leader_end_user(void) {
  5. if (leader_sequence_one_key(KC_A)) {
  6. tap_code(KC_1);
  7. }
  8. if (leader_sequence_two_keys(KC_A, KC_B)) {
  9. tap_code(KC_2);
  10. }
  11. if (leader_sequence_three_keys(KC_A, KC_B, KC_C)) {
  12. tap_code(KC_3);
  13. }
  14. if (leader_sequence_four_keys(KC_A, KC_B, KC_C, KC_D)) {
  15. tap_code(KC_4);
  16. }
  17. if (leader_sequence_five_keys(KC_A, KC_B, KC_C, KC_D, KC_E)) {
  18. tap_code(KC_5);
  19. }
  20. }