From ff1245d7cc136c137feae4953368cad73795d684 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 10 Mar 2024 01:26:33 +0100 Subject: Update the tap actions --- aktersnurra/charybdis/keymap.c | 3 +++ aktersnurra/ferris/keymap.c | 7 ++++--- aktersnurra/sftrp.c | 6 +----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'aktersnurra') diff --git a/aktersnurra/charybdis/keymap.c b/aktersnurra/charybdis/keymap.c index 15316d9..7c41ae2 100644 --- a/aktersnurra/charybdis/keymap.c +++ b/aktersnurra/charybdis/keymap.c @@ -30,6 +30,9 @@ enum { _COLEMAK_DH, _NAV, _NUM, _SYM, _FUN, _MEDIA, } layers; +tap_dance_action_t tap_dance_actions[] = { + [SFT_RP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, sftrp_finished, sftrp_reset)}; + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [_COLEMAK_DH] = LAYOUT( /* COLEMAK MOD DH */ KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, diff --git a/aktersnurra/ferris/keymap.c b/aktersnurra/ferris/keymap.c index 021b232..6e611db 100644 --- a/aktersnurra/ferris/keymap.c +++ b/aktersnurra/ferris/keymap.c @@ -21,16 +21,17 @@ #define NUM LT(_NUM, KC_TAB) enum { _COLEMAK_DH, _NAV, _NUM, _SYM, _FUN, _MEDIA } layers; -enum { TD_J_ESC } tap_dances; +enum { J_ESC } tap_dances; // Tap Dance Definitions tap_dance_action_t tap_dance_actions[] = { - [TD_J_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_J, KC_ESC) + [J_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_J, KC_ESC), + [SFT_RP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, sftrp_finished, sftrp_reset) }; const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [_COLEMAK_DH] = LAYOUT( /* COLEMAK MOD DH */ - KC_Q, KC_W, KC_F, KC_P, KC_B, TD(TD_J_ESC), KC_L, KC_U, KC_Y, KC_SCLN, + KC_Q, KC_W, KC_F, KC_P, KC_B, TD(J_ESC), KC_L, KC_U, KC_Y, KC_SCLN, KC_HA, KC_HR, KC_HS, KC_HT, KC_G, KC_M, KC_HN, KC_HE, KC_HI, KC_HO, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, NAV, SYM, NUM diff --git a/aktersnurra/sftrp.c b/aktersnurra/sftrp.c index 2b47cfc..e1deca0 100644 --- a/aktersnurra/sftrp.c +++ b/aktersnurra/sftrp.c @@ -1,5 +1,5 @@ enum td_keycodes { - SFT_RP // `LSFT` when held, `)` when tapped. + SFT_RP, // `LSFT` when held, `)` when tapped. }; typedef enum { @@ -63,7 +63,3 @@ void sftrp_reset(tap_dance_state_t *state, void *user_data) { break; } } - -tap_dance_action_t tap_dance_actions[] = { - [SFT_RP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, sftrp_finished, sftrp_reset)}; - -- cgit v1.2.3-70-g09d2