Tap Dance: remove qk_ prefix (#19313)

This commit is contained in:
Ryan 2022-12-15 07:40:25 +11:00 committed by GitHub
parent 83e8e5845a
commit 1978007fae
Failed to generate hash of commit
298 changed files with 1327 additions and 1327 deletions

View file

@ -45,11 +45,11 @@ enum belak_td {
TD_LAYER_TOGGLE = 0,
};
void belak_td_each(qk_tap_dance_state_t *state, void *user_data);
void belak_td_finished(qk_tap_dance_state_t *state, void *user_data);
void belak_td_reset(qk_tap_dance_state_t *state, void *user_data);
void belak_td_each(tap_dance_state_t *state, void *user_data);
void belak_td_finished(tap_dance_state_t *state, void *user_data);
void belak_td_reset(tap_dance_state_t *state, void *user_data);
qk_tap_dance_action_t tap_dance_actions[] = {
tap_dance_action_t tap_dance_actions[] = {
[TD_LAYER_TOGGLE] = ACTION_TAP_DANCE_FN_ADVANCED(belak_td_each, belak_td_finished, belak_td_reset),
};
@ -332,7 +332,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
void belak_td_each(qk_tap_dance_state_t *state, void *user_data) {
void belak_td_each(tap_dance_state_t *state, void *user_data) {
switch (state->count) {
case 1:
td_led_override = 1;
@ -345,7 +345,7 @@ void belak_td_each(qk_tap_dance_state_t *state, void *user_data) {
}
}
void belak_td_finished(qk_tap_dance_state_t *state, void *user_data) {
void belak_td_finished(tap_dance_state_t *state, void *user_data) {
switch (state->count) {
case 1:
layer_on(SYMB);
@ -357,6 +357,6 @@ void belak_td_finished(qk_tap_dance_state_t *state, void *user_data) {
td_led_override = 0;
}
void belak_td_reset(qk_tap_dance_state_t *state, void *user_data) {
void belak_td_reset(tap_dance_state_t *state, void *user_data) {
td_led_override = 0;
}

View file

@ -167,7 +167,7 @@ static fib_tap fib_bspc = {
.state = BSPC_LETTER
};
void cur_backspace (qk_tap_dance_state_t *state) {
void cur_backspace (tap_dance_state_t *state) {
int next_fib = fib_bspc.a + fib_bspc.b;
fib_bspc.a = fib_bspc.b;
fib_bspc.b = next_fib;
@ -177,7 +177,7 @@ void cur_backspace (qk_tap_dance_state_t *state) {
}
}
void dance_backspace (qk_tap_dance_state_t *state, void *user_data) {
void dance_backspace (tap_dance_state_t *state, void *user_data) {
// If we're at the fifth tap, switch to deleting by words, and reset the fib
// counter
if (state->count == 4) {
@ -197,7 +197,7 @@ void dance_backspace (qk_tap_dance_state_t *state, void *user_data) {
}
};
void dance_backspace_ended (qk_tap_dance_state_t *state, void *user_data) {
void dance_backspace_ended (tap_dance_state_t *state, void *user_data) {
if (state->count == 1) {
if (state->pressed) {
fib_bspc.state = HOLD_CTRL;
@ -208,7 +208,7 @@ void dance_backspace_ended (qk_tap_dance_state_t *state, void *user_data) {
}
};
void dance_backspace_reset (qk_tap_dance_state_t *state, void *user_data) {
void dance_backspace_reset (tap_dance_state_t *state, void *user_data) {
switch (fib_bspc.state) {
case HOLD_CTRL: unregister_code(KC_LCTL); break;
case BSPC_WORD: unregister_code(KC_BSPC); unregister_code(KC_LALT); break;
@ -219,7 +219,7 @@ void dance_backspace_reset (qk_tap_dance_state_t *state, void *user_data) {
fib_bspc.state = BSPC_LETTER;
};
qk_tap_dance_action_t tap_dance_actions[] = {
tap_dance_action_t tap_dance_actions[] = {
[TD_BSPC] = ACTION_TAP_DANCE_FN_ADVANCED (dance_backspace, dance_backspace_ended, dance_backspace_reset)
};

View file

@ -51,7 +51,7 @@ enum custom_keycodes {
static uint16_t key_timer; //key timer for macros
//Tap Dance Definitions
qk_tap_dance_action_t tap_dance_actions[] = {
tap_dance_action_t tap_dance_actions[] = {
//Tap once for Copy, twice for Paste, three times for Cut.
[TD_COPY_CUT] = ACTION_TAP_DANCE_DOUBLE(LGUI(KC_C),LGUI(KC_X)),
//Tap once for Snagit, twice for Cmd + Shift + Opt + 4 (OS X cropping screenshot that is copied to the clipboard only.)

View file

@ -106,7 +106,7 @@ typedef struct
videck_tap_dance_trigger_t trigger;
} videck_tap_dance_tuple_t;
static void videck_tap_dance_finished (qk_tap_dance_state_t *state, void *user_data) {
static void videck_tap_dance_finished (tap_dance_state_t *state, void *user_data) {
videck_tap_dance_tuple_t *const tuple = (videck_tap_dance_tuple_t *)user_data;
if (state->count == 1) {
@ -116,7 +116,7 @@ static void videck_tap_dance_finished (qk_tap_dance_state_t *state, void *user_d
}
}
static void videck_tap_dance_reset (qk_tap_dance_state_t *state, void *user_data) {
static void videck_tap_dance_reset (tap_dance_state_t *state, void *user_data) {
videck_tap_dance_tuple_t *const tuple = (videck_tap_dance_tuple_t *)user_data;
if (state->count == 1) {
@ -139,7 +139,7 @@ static void videck_caps_trigger (const uint16_t kc) {
.user_data = (void *)&((videck_tap_dance_tuple_t) { kc1, kc2, double_trigger }), \
}
qk_tap_dance_action_t tap_dance_actions[] = {
tap_dance_action_t tap_dance_actions[] = {
[TD_L] = ACTION_TAP_DANCE_DOUBLE_TRIGGER(KC_LSFT, KC_CAPS, videck_caps_trigger),
[TD_R] = ACTION_TAP_DANCE_DOUBLE_TRIGGER(KC_RSFT, KC_CAPS, videck_caps_trigger)
};