diff options
Diffstat (limited to 'keyboards/massdrop/ctrl/keymaps/xanimos')
-rw-r--r-- | keyboards/massdrop/ctrl/keymaps/xanimos/config.h | 2 | ||||
-rw-r--r-- | keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c | 8 | ||||
-rw-r--r-- | keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/config.h b/keyboards/massdrop/ctrl/keymaps/xanimos/config.h index 767fbaffca..87db7fe8ea 100644 --- a/keyboards/massdrop/ctrl/keymaps/xanimos/config.h +++ b/keyboards/massdrop/ctrl/keymaps/xanimos/config.h @@ -45,7 +45,7 @@ #define TAPPING_TOGGLE 2 // How many taps before triggering the toggle // #define PERMISSIVE_HOLD // Makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the TAPPING_TERM. See Permissive Hold for details // #define IGNORE_MOD_TAP_INTERRUPT // Makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the TAPPING_TERM for both keys. See Mod tap interrupt for details -// #define TAPPING_FORCE_HOLD // Makes it possible to use a dual role key as modifier shortly after having been tapped. See Hold after tap. Breaks any Tap Toggle functionality (TT or the One Shot Tap Toggle) +// #define QUICK_TAP_TERM 0 // Makes it possible to use a dual role key as modifier shortly after having been tapped. See Hold after tap. Breaks any Tap Toggle functionality (TT or the One Shot Tap Toggle) // #define LEADER_TIMEOUT 300 // How long before the leader key times out. If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the LEADER_PER_KEY_TIMING option, which resets the timeout after each key is tapped. // #define LEADER_PER_KEY_TIMING // Sets the timer for leader key chords to run on each key press rather than overall // #define LEADER_KEY_STRICT_KEY_PROCESSING // Disables keycode filtering for Mod-Tap and Layer-Tap keycodes. Eg, if you enable this, you would need to specify MT(MOD_CTL, KC_A) if you want to use KC_A. diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c index 3dbb48f16c..ac41b17a96 100644 --- a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c +++ b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c @@ -355,7 +355,7 @@ bool rgb_matrix_indicators_user(void) { -td_state_t cur_dance(qk_tap_dance_state_t *state) { +td_state_t cur_dance(tap_dance_state_t *state) { if (state->pressed && !state->interrupted) { if (state->count == 1) { return TD_SINGLE_HOLD; } return TD_DOUBLE_HOLD; @@ -368,7 +368,7 @@ static td_tap_t fn_tap_state = { .state = TD_NONE }; -void fn_tap_finished(qk_tap_dance_state_t *state, void *user_data) { +void fn_tap_finished(tap_dance_state_t *state, void *user_data) { fn_tap_state.state = cur_dance(state); switch (fn_tap_state.state) { case TD_SINGLE_HOLD: @@ -387,7 +387,7 @@ void fn_tap_finished(qk_tap_dance_state_t *state, void *user_data) { } } -void fn_tap_reset(qk_tap_dance_state_t *state, void *user_data) { +void fn_tap_reset(tap_dance_state_t *state, void *user_data) { switch (fn_tap_state.state) { case TD_UNKNOWN: unregister_code(KC_APP); @@ -406,6 +406,6 @@ void fn_tap_reset(qk_tap_dance_state_t *state, void *user_data) { fn_tap_state.state = TD_NONE; } -qk_tap_dance_action_t tap_dance_actions[] = { +tap_dance_action_t tap_dance_actions[] = { [TD_FN_SWITCH] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, fn_tap_finished, fn_tap_reset) }; diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h index 4f5238e702..2dae7131e4 100644 --- a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h +++ b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h @@ -86,11 +86,11 @@ typedef struct { // Declare your tapdance functions: // Function to determine the current tapdance state -td_state_t cur_dance(qk_tap_dance_state_t *state); +td_state_t cur_dance(tap_dance_state_t *state); // `finished` and `reset` functions for each tapdance keycode -void fn_tap_finished(qk_tap_dance_state_t *state, void *user_data); -void fn_tap_reset(qk_tap_dance_state_t *state, void *user_data); +void fn_tap_finished(tap_dance_state_t *state, void *user_data); +void fn_tap_reset(tap_dance_state_t *state, void *user_data); enum ctrl_keycodes { MD_BOOT = SAFE_RANGE, // Restart into bootloader after hold timeout |