summaryrefslogtreecommitdiff
path: root/keyboards/preonic
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-05-15 22:27:37 +1000
committerGitHub <noreply@github.com>2023-05-15 22:27:37 +1000
commit5faa23d54ca1e3ab83097f2a07922f48800616e6 (patch)
tree6ed05e5492f3fc8dda210a75b897dd9d4ed8df38 /keyboards/preonic
parent433dc6068603e61d466e755aedcea0be96664f95 (diff)
Keymap introspection for combos. (#19670)
Diffstat (limited to 'keyboards/preonic')
-rw-r--r--keyboards/preonic/keymaps/brauner/keymap.c5
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 {
COMBO_LBRC_RBRC, /* [|] */
COMBO_LCBR_RCBR, /* {|} */
COMBO_LT_GT, /* <|> */
- COMBO_MAX,
};
-uint16_t COMBO_LEN = COMBO_MAX;
-
const uint16_t PROGMEM combo_lprn_rprn[] = {KC_LPRN, KC_RPRN, COMBO_END};
const uint16_t PROGMEM combo_lbrc_rbrc[] = {KC_LBRC, KC_RBRC, COMBO_END};
const uint16_t PROGMEM combo_lcbr_rcbr[] = {KC_LCBR, KC_RCBR, COMBO_END};
const uint16_t PROGMEM combo_lt_gt[] = {KC_LT, KC_GT, COMBO_END};
-combo_t key_combos[COMBO_MAX] = {
+combo_t key_combos[] = {
[COMBO_LPRN_RPRN] = COMBO_ACTION(combo_lprn_rprn),
[COMBO_LBRC_RBRC] = COMBO_ACTION(combo_lbrc_rbrc),
[COMBO_LCBR_RCBR] = COMBO_ACTION(combo_lcbr_rcbr),