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/synapse | |
parent | 433dc6068603e61d466e755aedcea0be96664f95 (diff) |
Keymap introspection for combos. (#19670)
Diffstat (limited to 'keyboards/synapse')
-rw-r--r-- | keyboards/synapse/keymaps/7u_space/config.h | 3 | ||||
-rw-r--r-- | keyboards/synapse/keymaps/7u_space/keymap.c | 4 | ||||
-rw-r--r-- | keyboards/synapse/keymaps/default/config.h | 3 | ||||
-rw-r--r-- | keyboards/synapse/keymaps/default/keymap.c | 4 |
4 files changed, 6 insertions, 8 deletions
diff --git a/keyboards/synapse/keymaps/7u_space/config.h b/keyboards/synapse/keymaps/7u_space/config.h index 7fdb8504a6..e398cb5b2d 100644 --- a/keyboards/synapse/keymaps/7u_space/config.h +++ b/keyboards/synapse/keymaps/7u_space/config.h @@ -21,6 +21,5 @@ /*Combos*/ #ifdef COMBO_ENABLE -# define COMBO_COUNT 5 # define COMBO_TERM 50 -#endif
\ No newline at end of file +#endif diff --git a/keyboards/synapse/keymaps/7u_space/keymap.c b/keyboards/synapse/keymaps/7u_space/keymap.c index 1791db3abe..b530e91c78 100644 --- a/keyboards/synapse/keymaps/7u_space/keymap.c +++ b/keyboards/synapse/keymaps/7u_space/keymap.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - + #include QMK_KEYBOARD_H enum layers{ @@ -67,7 +67,7 @@ const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END}; const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END}; const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END}; -combo_t key_combos[COMBO_COUNT] = { +combo_t key_combos[] = { [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC), [COMBO_ENT] = COMBO(combo_ent,KC_ENT), [COMBO_TAB] = COMBO(combo_tab,KC_TAB), diff --git a/keyboards/synapse/keymaps/default/config.h b/keyboards/synapse/keymaps/default/config.h index 7fdb8504a6..e398cb5b2d 100644 --- a/keyboards/synapse/keymaps/default/config.h +++ b/keyboards/synapse/keymaps/default/config.h @@ -21,6 +21,5 @@ /*Combos*/ #ifdef COMBO_ENABLE -# define COMBO_COUNT 5 # define COMBO_TERM 50 -#endif
\ No newline at end of file +#endif diff --git a/keyboards/synapse/keymaps/default/keymap.c b/keyboards/synapse/keymaps/default/keymap.c index adaa51bddb..3428272ee9 100644 --- a/keyboards/synapse/keymaps/default/keymap.c +++ b/keyboards/synapse/keymaps/default/keymap.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - + #include QMK_KEYBOARD_H enum layers{ @@ -67,7 +67,7 @@ const uint16_t PROGMEM combo_tab[] = {KC_S, KC_D, COMBO_END}; const uint16_t PROGMEM combo_esc[] = {KC_T, KC_Y, COMBO_END}; const uint16_t PROGMEM combo_del[] = {KC_Q, KC_W, COMBO_END}; -combo_t key_combos[COMBO_COUNT] = { +combo_t key_combos[] = { [COMBO_BSPC] = COMBO(combo_bspc,KC_BSPC), [COMBO_ENT] = COMBO(combo_ent,KC_ENT), [COMBO_TAB] = COMBO(combo_tab,KC_TAB), |