Keymap introspection for combos. (#19670)

This commit is contained in:
Nick Brassel
2023-05-15 22:27:37 +10:00
committed by GitHub
parent 433dc60686
commit 5faa23d54c
226 changed files with 533 additions and 729 deletions

View File

@@ -37,8 +37,6 @@
// how long before oneshot times out
#define ONESHOT_TAP_TOGGLE 2
// how many taps before oneshot toggle is triggered
#define COMBO_COUNT 2
// Set this to the number of combos that you're using in the Combo feature.
#define COMBO_TERM 200
// how long for the Combo keys to be detected. Defaults to TAPPING_TERM if not defined.
#define TAP_CODE_DELAY 100

View File

@@ -19,7 +19,5 @@
#define RETRO_TAPPING_PER_KEY
#define TAPPING_TERM_PER_KEY
#define COMBO_COUNT 2 // number of combos used
#define COMBO_TERM 40 // time out for combos in ms
#define TAPPING_TERM 200 // time out for tap-hold in ms

View File

@@ -99,14 +99,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
combo_t key_combos[COMBO_COUNT] = {
combo_t key_combos[] = {
COMBO(df_tab, KC_TAB),
COMBO(jk_alt, KC_LALT),
};
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
}
}
uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {