summaryrefslogtreecommitdiffstats
path: root/users/mnil
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-12-15 07:40:25 +1100
committerGitHub <noreply@github.com>2022-12-14 12:40:25 -0800
commit1978007faefc0fb3af809ddf0d2ff1274e540570 (patch)
tree76e3d5ce69f8f4892602c5cfb6b54374642e7c55 /users/mnil
parent83e8e5845a7136ade68bad82c156c70c071f9bf7 (diff)
Tap Dance: remove `qk_` prefix (#19313)
Diffstat (limited to 'users/mnil')
-rw-r--r--users/mnil/mnil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/users/mnil/mnil.c b/users/mnil/mnil.c
index 00da6086ef..eb3b4a1c9d 100644
--- a/users/mnil/mnil.c
+++ b/users/mnil/mnil.c
@@ -54,7 +54,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// Tap Dance
// Determine the current tap dance state
-int cur_dance(qk_tap_dance_state_t *state) {
+int cur_dance(tap_dance_state_t *state) {
if (state->count == 1) {
if (state->interrupted || !state->pressed)
return SINGLE_TAP;
@@ -79,7 +79,7 @@ int cur_dance(qk_tap_dance_state_t *state) {
static tap ae_tap_state = {.is_press_action = true, .state = 0};
-void ae_finished(qk_tap_dance_state_t *state, void *user_data) {
+void ae_finished(tap_dance_state_t *state, void *user_data) {
ae_tap_state.state = cur_dance(state);
switch (ae_tap_state.state) {
case SINGLE_TAP:
@@ -95,7 +95,7 @@ void ae_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
-void ae_reset(qk_tap_dance_state_t *state, void *user_data) {
+void ae_reset(tap_dance_state_t *state, void *user_data) {
switch (ae_tap_state.state) {
case SINGLE_TAP:
unregister_code(KC_A);
@@ -109,7 +109,7 @@ void ae_reset(qk_tap_dance_state_t *state, void *user_data) {
static tap aa_tap_state = {.is_press_action = true, .state = 0};
-void aa_finished(qk_tap_dance_state_t *state, void *user_data) {
+void aa_finished(tap_dance_state_t *state, void *user_data) {
aa_tap_state.state = cur_dance(state);
switch (aa_tap_state.state) {
case SINGLE_TAP:
@@ -126,7 +126,7 @@ void aa_finished(qk_tap_dance_state_t *state, void *user_data) {
}
}
-void aa_reset(qk_tap_dance_state_t *state, void *user_data) {
+void aa_reset(tap_dance_state_t *state, void *user_data) {
switch (aa_tap_state.state) {
case SINGLE_TAP:
unregister_code(SE_ODIA);
@@ -139,7 +139,7 @@ void aa_reset(qk_tap_dance_state_t *state, void *user_data) {
}
// clang-format off
-qk_tap_dance_action_t tap_dance_actions[] = {
+tap_dance_action_t tap_dance_actions[] = {
[AAE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ae_finished, ae_reset),
[OAA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, aa_finished, aa_reset)
};