diff options
| author | Nick Brassel <nick@tzarc.org> | 2023-05-15 22:27:37 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-15 22:27:37 +1000 |
| commit | 5faa23d54ca1e3ab83097f2a07922f48800616e6 (patch) | |
| tree | 6ed05e5492f3fc8dda210a75b897dd9d4ed8df38 /keyboards/preonic | |
| parent | 433dc6068603e61d466e755aedcea0be96664f95 (diff) | |
Keymap introspection for combos. (#19670)
Diffstat (limited to 'keyboards/preonic')
| -rw-r--r-- | keyboards/preonic/keymaps/brauner/keymap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/keyboards/preonic/keymaps/brauner/keymap.c b/keyboards/preonic/keymaps/brauner/keymap.c index 24a350e6d4..398abfa741 100644 --- a/keyboards/preonic/keymaps/brauner/keymap.c +++ b/keyboards/preonic/keymaps/brauner/keymap.c | |||
| @@ -56,17 +56,14 @@ enum combos { | |||
| 56 | COMBO_LBRC_RBRC, /* [|] */ | 56 | COMBO_LBRC_RBRC, /* [|] */ |
| 57 | COMBO_LCBR_RCBR, /* {|} */ | 57 | COMBO_LCBR_RCBR, /* {|} */ |
| 58 | COMBO_LT_GT, /* <|> */ | 58 | COMBO_LT_GT, /* <|> */ |
| 59 | COMBO_MAX, | ||
| 60 | }; | 59 | }; |
| 61 | 60 | ||
| 62 | uint16_t COMBO_LEN = COMBO_MAX; | ||
| 63 | |||
| 64 | const uint16_t PROGMEM combo_lprn_rprn[] = {KC_LPRN, KC_RPRN, COMBO_END}; | 61 | const uint16_t PROGMEM combo_lprn_rprn[] = {KC_LPRN, KC_RPRN, COMBO_END}; |
| 65 | const uint16_t PROGMEM combo_lbrc_rbrc[] = {KC_LBRC, KC_RBRC, COMBO_END}; | 62 | const uint16_t PROGMEM combo_lbrc_rbrc[] = {KC_LBRC, KC_RBRC, COMBO_END}; |
| 66 | const uint16_t PROGMEM combo_lcbr_rcbr[] = {KC_LCBR, KC_RCBR, COMBO_END}; | 63 | const uint16_t PROGMEM combo_lcbr_rcbr[] = {KC_LCBR, KC_RCBR, COMBO_END}; |
| 67 | const uint16_t PROGMEM combo_lt_gt[] = {KC_LT, KC_GT, COMBO_END}; | 64 | const uint16_t PROGMEM combo_lt_gt[] = {KC_LT, KC_GT, COMBO_END}; |
| 68 | 65 | ||
| 69 | combo_t key_combos[COMBO_MAX] = { | 66 | combo_t key_combos[] = { |
| 70 | [COMBO_LPRN_RPRN] = COMBO_ACTION(combo_lprn_rprn), | 67 | [COMBO_LPRN_RPRN] = COMBO_ACTION(combo_lprn_rprn), |
| 71 | [COMBO_LBRC_RBRC] = COMBO_ACTION(combo_lbrc_rbrc), | 68 | [COMBO_LBRC_RBRC] = COMBO_ACTION(combo_lbrc_rbrc), |
| 72 | [COMBO_LCBR_RCBR] = COMBO_ACTION(combo_lcbr_rcbr), | 69 | [COMBO_LCBR_RCBR] = COMBO_ACTION(combo_lcbr_rcbr), |
