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
298 changed files with 1327 additions and 1327 deletions

View File

@@ -4,7 +4,7 @@ static tap dot_comm_state = {
.state = 0
};
void dot_comm_finished(qk_tap_dance_state_t *state, void *user_data) {
void dot_comm_finished(tap_dance_state_t *state, void *user_data) {
dot_comm_state.state = current_dance(state);
switch (dot_comm_state.state) {
case SINGLE_TAP:
@@ -22,7 +22,7 @@ void dot_comm_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void dot_comm_reset(qk_tap_dance_state_t *state, void *user_data) {
void dot_comm_reset(tap_dance_state_t *state, void *user_data) {
switch (dot_comm_state.state) {
case SINGLE_TAP:
unregister_code(KC_DOT);

View File

@@ -4,7 +4,7 @@ static tap h_mouse_gui_state = {
.state = 0
};
void h_mouse_gui_finished(qk_tap_dance_state_t *state, void *user_data) {
void h_mouse_gui_finished(tap_dance_state_t *state, void *user_data) {
h_mouse_gui_state.state = current_dance(state);
switch (h_mouse_gui_state.state) {
case SINGLE_TAP:
@@ -21,7 +21,7 @@ void h_mouse_gui_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void h_mouse_gui_reset(qk_tap_dance_state_t *state, void *user_data) {
void h_mouse_gui_reset(tap_dance_state_t *state, void *user_data) {
switch (h_mouse_gui_state.state) {
case SINGLE_TAP:
unregister_code(KC_H);

View File

@@ -4,7 +4,7 @@ static tap j_media_meh_state = {
.state = 0
};
void j_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) {
void j_media_meh_finished(tap_dance_state_t *state, void *user_data) {
j_media_meh_state.state = current_dance(state);
switch (j_media_meh_state.state) {
case SINGLE_TAP:
@@ -23,7 +23,7 @@ void j_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void j_media_meh_reset(qk_tap_dance_state_t *state, void *user_data) {
void j_media_meh_reset(tap_dance_state_t *state, void *user_data) {
switch (j_media_meh_state.state) {
case SINGLE_TAP:
unregister_code(KC_J);

View File

@@ -4,7 +4,7 @@ static tap k_numpad_hyper_state = {
.state = 0
};
void k_numpad_hyper_finished(qk_tap_dance_state_t *state, void *user_data) {
void k_numpad_hyper_finished(tap_dance_state_t *state, void *user_data) {
k_numpad_hyper_state.state = current_dance(state);
switch (k_numpad_hyper_state.state) {
case SINGLE_TAP:
@@ -24,7 +24,7 @@ void k_numpad_hyper_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void k_numpad_hyper_reset(qk_tap_dance_state_t *state, void *user_data) {
void k_numpad_hyper_reset(tap_dance_state_t *state, void *user_data) {
switch (k_numpad_hyper_state.state) {
case SINGLE_TAP:
unregister_code(KC_K);

View File

@@ -4,7 +4,7 @@ static tap m_chords_hyper_state = {
.state = 0
};
void m_chords_hyper_finished(qk_tap_dance_state_t *state, void *user_data) {
void m_chords_hyper_finished(tap_dance_state_t *state, void *user_data) {
m_chords_hyper_state.state = current_dance(state);
switch (m_chords_hyper_state.state) {
case SINGLE_TAP:
@@ -24,7 +24,7 @@ void m_chords_hyper_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void m_chords_hyper_reset(qk_tap_dance_state_t *state, void *user_data) {
void m_chords_hyper_reset(tap_dance_state_t *state, void *user_data) {
switch (m_chords_hyper_state.state) {
case SINGLE_TAP:
unregister_code(KC_M);

View File

@@ -4,7 +4,7 @@ static tap none_lead_state = {
.state = 0
};
void none_lead_finished(qk_tap_dance_state_t *state, void *user_data) {
void none_lead_finished(tap_dance_state_t *state, void *user_data) {
none_lead_state.state = current_dance(state);
switch (none_lead_state.state) {
case SINGLE_TAP:
@@ -22,7 +22,7 @@ void none_lead_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void none_lead_reset(qk_tap_dance_state_t *state, void *user_data) {
void none_lead_reset(tap_dance_state_t *state, void *user_data) {
switch (none_lead_state.state) {
case SINGLE_TAP:
unregister_code(KC_NO);

View File

@@ -4,7 +4,7 @@ static tap quot_dquot_state = {
.state = 0
};
void quot_dquot_finished(qk_tap_dance_state_t *state, void *user_data) {
void quot_dquot_finished(tap_dance_state_t *state, void *user_data) {
quot_dquot_state.state = current_dance(state);
switch (quot_dquot_state.state) {
case SINGLE_TAP:
@@ -22,7 +22,7 @@ void quot_dquot_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void quot_dquot_reset(qk_tap_dance_state_t *state, void *user_data) {
void quot_dquot_reset(tap_dance_state_t *state, void *user_data) {
switch (quot_dquot_state.state) {
case SINGLE_TAP:
unregister_code(KC_QUOT);

View File

@@ -4,7 +4,7 @@ static tap scln_coln_state = {
.state = 0
};
void scln_coln_finished(qk_tap_dance_state_t *state, void *user_data) {
void scln_coln_finished(tap_dance_state_t *state, void *user_data) {
scln_coln_state.state = current_dance(state);
switch (scln_coln_state.state) {
case SINGLE_TAP:
@@ -23,7 +23,7 @@ void scln_coln_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void scln_coln_reset(qk_tap_dance_state_t *state, void *user_data) {
void scln_coln_reset(tap_dance_state_t *state, void *user_data) {
switch (scln_coln_state.state) {
case SINGLE_TAP:
unregister_code(KC_SCLN);

View File

@@ -4,7 +4,7 @@ static tap u_arrows_gui_state = {
.state = 0
};
void u_arrows_gui_finished(qk_tap_dance_state_t *state, void *user_data) {
void u_arrows_gui_finished(tap_dance_state_t *state, void *user_data) {
u_arrows_gui_state.state = current_dance(state);
switch (u_arrows_gui_state.state) {
case SINGLE_TAP:
@@ -21,7 +21,7 @@ void u_arrows_gui_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void u_arrows_gui_reset(qk_tap_dance_state_t *state, void *user_data) {
void u_arrows_gui_reset(tap_dance_state_t *state, void *user_data) {
switch (u_arrows_gui_state.state) {
case SINGLE_TAP:
unregister_code(KC_U);

View File

@@ -4,7 +4,7 @@ static tap w_media_meh_state = {
.state = 0
};
void w_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) {
void w_media_meh_finished(tap_dance_state_t *state, void *user_data) {
w_media_meh_state.state = current_dance(state);
switch (w_media_meh_state.state) {
case SINGLE_TAP:
@@ -23,7 +23,7 @@ void w_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
void w_media_meh_reset(qk_tap_dance_state_t *state, void *user_data) {
void w_media_meh_reset(tap_dance_state_t *state, void *user_data) {
switch (w_media_meh_state.state) {
case SINGLE_TAP:
unregister_code(KC_W);

View File

@@ -1,5 +1,5 @@
// Register the double tap dances:
qk_tap_dance_action_t tap_dance_actions[] = {
tap_dance_action_t tap_dance_actions[] = {
[EQL_PLUS] = ACTION_TAP_DANCE_DOUBLE(KC_EQL, KC_PLUS),
[MINS_UNDS] = ACTION_TAP_DANCE_DOUBLE(KC_MINS, KC_UNDS),
[SLSH_BSLS] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_BSLS),

View File

@@ -41,7 +41,7 @@ enum {
* For the third point, there does exist the 'DOUBLE_SINGLE_TAP', however this is not fully tested
*
*/
int current_dance(qk_tap_dance_state_t *state) {
int current_dance(tap_dance_state_t *state) {
int current_state = 0;
if (state->count == 1) {
if (state->interrupted || !state->pressed) {