diff options
| author | Ryan <fauxpark@gmail.com> | 2022-12-15 07:40:25 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-14 12:40:25 -0800 |
| commit | 1978007faefc0fb3af809ddf0d2ff1274e540570 (patch) | |
| tree | 76e3d5ce69f8f4892602c5cfb6b54374642e7c55 /keyboards/jones | |
| parent | 83e8e5845a7136ade68bad82c156c70c071f9bf7 (diff) | |
Tap Dance: remove `qk_` prefix (#19313)
Diffstat (limited to 'keyboards/jones')
| -rw-r--r-- | keyboards/jones/v03/keymaps/default_jp/keymap.c | 14 | ||||
| -rw-r--r-- | keyboards/jones/v03_1/keymaps/default_ansi/keymap.c | 14 | ||||
| -rw-r--r-- | keyboards/jones/v03_1/keymaps/default_jp/keymap.c | 14 |
3 files changed, 21 insertions, 21 deletions
diff --git a/keyboards/jones/v03/keymaps/default_jp/keymap.c b/keyboards/jones/v03/keymaps/default_jp/keymap.c index ae618ee0bc..dd7e878170 100644 --- a/keyboards/jones/v03/keymaps/default_jp/keymap.c +++ b/keyboards/jones/v03/keymaps/default_jp/keymap.c | |||
| @@ -43,13 +43,13 @@ enum { | |||
| 43 | 43 | ||
| 44 | // Declare the functions to be used with your tap dance key(s) | 44 | // Declare the functions to be used with your tap dance key(s) |
| 45 | // Function associated with all tap dances | 45 | // Function associated with all tap dances |
| 46 | uint8_t cur_dance(qk_tap_dance_state_t *state); | 46 | uint8_t cur_dance(tap_dance_state_t *state); |
| 47 | // Functions associated with individual tap dances | 47 | // Functions associated with individual tap dances |
| 48 | void ql_finished(qk_tap_dance_state_t *state, void *user_data); | 48 | void ql_finished(tap_dance_state_t *state, void *user_data); |
| 49 | void ql_reset(qk_tap_dance_state_t *state, void *user_data); | 49 | void ql_reset(tap_dance_state_t *state, void *user_data); |
| 50 | 50 | ||
| 51 | // Tap Dance definitions | 51 | // Tap Dance definitions |
| 52 | qk_tap_dance_action_t tap_dance_actions[] = { | 52 | tap_dance_action_t tap_dance_actions[] = { |
| 53 | [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), | 53 | [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), |
| 54 | [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), | 54 | [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), |
| 55 | }; | 55 | }; |
| @@ -279,7 +279,7 @@ typedef struct { | |||
| 279 | } tap; | 279 | } tap; |
| 280 | 280 | ||
| 281 | // Determine the current tap dance state | 281 | // Determine the current tap dance state |
| 282 | uint8_t cur_dance(qk_tap_dance_state_t *state) { | 282 | uint8_t cur_dance(tap_dance_state_t *state) { |
| 283 | if (state->count == 1) { | 283 | if (state->count == 1) { |
| 284 | if (!state->pressed) { | 284 | if (!state->pressed) { |
| 285 | return SINGLE_TAP; | 285 | return SINGLE_TAP; |
| @@ -310,7 +310,7 @@ static tap ql_tap_state = { | |||
| 310 | }; | 310 | }; |
| 311 | 311 | ||
| 312 | // Functions that control what our tap dance key does | 312 | // Functions that control what our tap dance key does |
| 313 | void ql_finished(qk_tap_dance_state_t *state, void *user_data) { | 313 | void ql_finished(tap_dance_state_t *state, void *user_data) { |
| 314 | ql_tap_state.state = cur_dance(state); | 314 | ql_tap_state.state = cur_dance(state); |
| 315 | switch(TAP_DANCE_KEYCODE(state)) { | 315 | switch(TAP_DANCE_KEYCODE(state)) { |
| 316 | case TD(TD_ESC_NUM): // ESC key action | 316 | case TD(TD_ESC_NUM): // ESC key action |
| @@ -340,7 +340,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) { | |||
| 340 | } | 340 | } |
| 341 | } | 341 | } |
| 342 | 342 | ||
| 343 | void ql_reset(qk_tap_dance_state_t *state, void *user_data) { | 343 | void ql_reset(tap_dance_state_t *state, void *user_data) { |
| 344 | switch(TAP_DANCE_KEYCODE(state)) { | 344 | switch(TAP_DANCE_KEYCODE(state)) { |
| 345 | case TD(TD_ESC_NUM): | 345 | case TD(TD_ESC_NUM): |
| 346 | // If the key was held down and now is released then switch off the layer | 346 | // If the key was held down and now is released then switch off the layer |
diff --git a/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c b/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c index 962acc1810..3c11d5dc90 100644 --- a/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c +++ b/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c | |||
| @@ -42,13 +42,13 @@ enum { | |||
| 42 | 42 | ||
| 43 | // Declare the functions to be used with your tap dance key(s) | 43 | // Declare the functions to be used with your tap dance key(s) |
| 44 | // Function associated with all tap dances | 44 | // Function associated with all tap dances |
| 45 | uint8_t cur_dance(qk_tap_dance_state_t *state); | 45 | uint8_t cur_dance(tap_dance_state_t *state); |
| 46 | // Functions associated with individual tap dances | 46 | // Functions associated with individual tap dances |
| 47 | void ql_finished(qk_tap_dance_state_t *state, void *user_data); | 47 | void ql_finished(tap_dance_state_t *state, void *user_data); |
| 48 | void ql_reset(qk_tap_dance_state_t *state, void *user_data); | 48 | void ql_reset(tap_dance_state_t *state, void *user_data); |
| 49 | 49 | ||
| 50 | // Tap Dance definitions | 50 | // Tap Dance definitions |
| 51 | qk_tap_dance_action_t tap_dance_actions[] = { | 51 | tap_dance_action_t tap_dance_actions[] = { |
| 52 | [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), | 52 | [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), |
| 53 | [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), | 53 | [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), |
| 54 | }; | 54 | }; |
| @@ -298,7 +298,7 @@ typedef struct { | |||
| 298 | } tap; | 298 | } tap; |
| 299 | 299 | ||
| 300 | // Determine the current tap dance state | 300 | // Determine the current tap dance state |
| 301 | uint8_t cur_dance(qk_tap_dance_state_t *state) { | 301 | uint8_t cur_dance(tap_dance_state_t *state) { |
| 302 | if (state->count == 1) { | 302 | if (state->count == 1) { |
| 303 | if (!state->pressed) { | 303 | if (!state->pressed) { |
| 304 | return SINGLE_TAP; | 304 | return SINGLE_TAP; |
| @@ -329,7 +329,7 @@ static tap ql_tap_state = { | |||
| 329 | }; | 329 | }; |
| 330 | 330 | ||
| 331 | // Functions that control what our tap dance key does | 331 | // Functions that control what our tap dance key does |
| 332 | void ql_finished(qk_tap_dance_state_t *state, void *user_data) { | 332 | void ql_finished(tap_dance_state_t *state, void *user_data) { |
| 333 | ql_tap_state.state = cur_dance(state); | 333 | ql_tap_state.state = cur_dance(state); |
| 334 | switch(TAP_DANCE_KEYCODE(state)) { | 334 | switch(TAP_DANCE_KEYCODE(state)) { |
| 335 | case TD(TD_ESC_NUM): // ESC key action | 335 | case TD(TD_ESC_NUM): // ESC key action |
| @@ -359,7 +359,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) { | |||
| 359 | } | 359 | } |
| 360 | } | 360 | } |
| 361 | 361 | ||
| 362 | void ql_reset(qk_tap_dance_state_t *state, void *user_data) { | 362 | void ql_reset(tap_dance_state_t *state, void *user_data) { |
| 363 | switch(TAP_DANCE_KEYCODE(state)) { | 363 | switch(TAP_DANCE_KEYCODE(state)) { |
| 364 | case TD(TD_ESC_NUM): | 364 | case TD(TD_ESC_NUM): |
| 365 | // If the key was held down and now is released then switch off the layer | 365 | // If the key was held down and now is released then switch off the layer |
diff --git a/keyboards/jones/v03_1/keymaps/default_jp/keymap.c b/keyboards/jones/v03_1/keymaps/default_jp/keymap.c index 6e06dfe897..9d7aa50960 100644 --- a/keyboards/jones/v03_1/keymaps/default_jp/keymap.c +++ b/keyboards/jones/v03_1/keymaps/default_jp/keymap.c | |||
| @@ -43,13 +43,13 @@ enum { | |||
| 43 | 43 | ||
| 44 | // Declare the functions to be used with your tap dance key(s) | 44 | // Declare the functions to be used with your tap dance key(s) |
| 45 | // Function associated with all tap dances | 45 | // Function associated with all tap dances |
| 46 | uint8_t cur_dance(qk_tap_dance_state_t *state); | 46 | uint8_t cur_dance(tap_dance_state_t *state); |
| 47 | // Functions associated with individual tap dances | 47 | // Functions associated with individual tap dances |
| 48 | void ql_finished(qk_tap_dance_state_t *state, void *user_data); | 48 | void ql_finished(tap_dance_state_t *state, void *user_data); |
| 49 | void ql_reset(qk_tap_dance_state_t *state, void *user_data); | 49 | void ql_reset(tap_dance_state_t *state, void *user_data); |
| 50 | 50 | ||
| 51 | // Tap Dance definitions | 51 | // Tap Dance definitions |
| 52 | qk_tap_dance_action_t tap_dance_actions[] = { | 52 | tap_dance_action_t tap_dance_actions[] = { |
| 53 | [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), | 53 | [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), |
| 54 | [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), | 54 | [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), |
| 55 | }; | 55 | }; |
| @@ -300,7 +300,7 @@ typedef struct { | |||
| 300 | } tap; | 300 | } tap; |
| 301 | 301 | ||
| 302 | // Determine the current tap dance state | 302 | // Determine the current tap dance state |
| 303 | uint8_t cur_dance(qk_tap_dance_state_t *state) { | 303 | uint8_t cur_dance(tap_dance_state_t *state) { |
| 304 | if (state->count == 1) { | 304 | if (state->count == 1) { |
| 305 | if (!state->pressed) { | 305 | if (!state->pressed) { |
| 306 | return SINGLE_TAP; | 306 | return SINGLE_TAP; |
| @@ -331,7 +331,7 @@ static tap ql_tap_state = { | |||
| 331 | }; | 331 | }; |
| 332 | 332 | ||
| 333 | // Functions that control what our tap dance key does | 333 | // Functions that control what our tap dance key does |
| 334 | void ql_finished(qk_tap_dance_state_t *state, void *user_data) { | 334 | void ql_finished(tap_dance_state_t *state, void *user_data) { |
| 335 | ql_tap_state.state = cur_dance(state); | 335 | ql_tap_state.state = cur_dance(state); |
| 336 | switch(TAP_DANCE_KEYCODE(state)) { | 336 | switch(TAP_DANCE_KEYCODE(state)) { |
| 337 | case TD(TD_ESC_NUM): // ESC key action | 337 | case TD(TD_ESC_NUM): // ESC key action |
| @@ -361,7 +361,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) { | |||
| 361 | } | 361 | } |
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | void ql_reset(qk_tap_dance_state_t *state, void *user_data) { | 364 | void ql_reset(tap_dance_state_t *state, void *user_data) { |
| 365 | switch(TAP_DANCE_KEYCODE(state)) { | 365 | switch(TAP_DANCE_KEYCODE(state)) { |
| 366 | case TD(TD_ESC_NUM): | 366 | case TD(TD_ESC_NUM): |
| 367 | // If the key was held down and now is released then switch off the layer | 367 | // If the key was held down and now is released then switch off the layer |
