Tap Dance: remove qk_ prefix (#19313)
				
					
				
			This commit is contained in:
		
							parent
							
								
									83e8e5845a
								
							
						
					
					
						commit
						1978007fae
					
				
					 298 changed files with 1327 additions and 1327 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
#include "tap_dance.h"
 | 
			
		||||
//**************** Definitions needed for quad function to work *********************//
 | 
			
		||||
#ifdef QUAD_DANCE
 | 
			
		||||
int cur_dance(qk_tap_dance_state_t *state)
 | 
			
		||||
int cur_dance(tap_dance_state_t *state)
 | 
			
		||||
{
 | 
			
		||||
  if (state->count == 1)
 | 
			
		||||
  {
 | 
			
		||||
| 
						 | 
				
			
			@ -30,8 +30,8 @@ int cur_dance(qk_tap_dance_state_t *state)
 | 
			
		|||
# endif
 | 
			
		||||
 | 
			
		||||
// Slightly better tap dance double: interruption sends double single and any number over double sends the single that number of times
 | 
			
		||||
void qk_tap_dance_pair_finished_safe(qk_tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
  qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data;
 | 
			
		||||
void tap_dance_pair_finished_safe(tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
  tap_dance_pair_t *pair = (tap_dance_pair_t *)user_data;
 | 
			
		||||
  int count = state->count;
 | 
			
		||||
  if (state->count == 2) {
 | 
			
		||||
    if (state->interrupted){
 | 
			
		||||
| 
						 | 
				
			
			@ -47,8 +47,8 @@ void qk_tap_dance_pair_finished_safe(qk_tap_dance_state_t *state, void *user_dat
 | 
			
		|||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void qk_tap_dance_pair_reset_safe(qk_tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
  qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data;
 | 
			
		||||
void tap_dance_pair_reset_safe(tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
  tap_dance_pair_t *pair = (tap_dance_pair_t *)user_data;
 | 
			
		||||
  if (state->count == 2) {
 | 
			
		||||
    unregister_code16 (pair->kc2);
 | 
			
		||||
    return;
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@ void qk_tap_dance_pair_reset_safe(qk_tap_dance_state_t *state, void *user_data)
 | 
			
		|||
 | 
			
		||||
//**************** Tap dance functions *********************//
 | 
			
		||||
 | 
			
		||||
qk_tap_dance_action_t tap_dance_actions[] = {
 | 
			
		||||
tap_dance_action_t tap_dance_actions[] = {
 | 
			
		||||
    [COPY_CUT] = ACTION_TAP_DANCE_FN(td_copy_cut),
 | 
			
		||||
    [PASTE_DANCE] = ACTION_TAP_DANCE_FN(td_paste),
 | 
			
		||||
    [_TD_F1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_F1),
 | 
			
		||||
| 
						 | 
				
			
			@ -86,7 +86,7 @@ qk_tap_dance_action_t tap_dance_actions[] = {
 | 
			
		|||
    [_TD_PASTE] = ACTION_TAP_DANCE_FN(dance_paste)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void td_copy_cut(qk_tap_dance_state_t *state, void *user_data)
 | 
			
		||||
void td_copy_cut(tap_dance_state_t *state, void *user_data)
 | 
			
		||||
{
 | 
			
		||||
  if (state->count == 2)
 | 
			
		||||
  {
 | 
			
		||||
| 
						 | 
				
			
			@ -99,7 +99,7 @@ void td_copy_cut(qk_tap_dance_state_t *state, void *user_data)
 | 
			
		|||
  reset_tap_dance(state);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void td_paste(qk_tap_dance_state_t *state, void *user_data)
 | 
			
		||||
void td_paste(tap_dance_state_t *state, void *user_data)
 | 
			
		||||
{
 | 
			
		||||
  if (state->count == 2)
 | 
			
		||||
  {
 | 
			
		||||
| 
						 | 
				
			
			@ -113,7 +113,7 @@ void td_paste(qk_tap_dance_state_t *state, void *user_data)
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
//===== The awesome tap dance for CUT, COPY and PASTE letters
 | 
			
		||||
void dance_copy (qk_tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
void dance_copy (tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
  if (state->count == 1) { tap_code16(KC_C); }
 | 
			
		||||
  else
 | 
			
		||||
  if (state->interrupted) { tap_code16(KC_C);tap_code16(KC_C);}
 | 
			
		||||
| 
						 | 
				
			
			@ -122,13 +122,13 @@ void dance_copy (qk_tap_dance_state_t *state, void *user_data) {
 | 
			
		|||
  reset_tap_dance (state);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void dance_cut (qk_tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
void dance_cut (tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
  if (state->count == 1) { tap_code16(KC_X); }
 | 
			
		||||
  else { CMD(KC_X); }
 | 
			
		||||
  reset_tap_dance (state);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void dance_paste (qk_tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
void dance_paste (tap_dance_state_t *state, void *user_data) {
 | 
			
		||||
  if (state->count == 1) {
 | 
			
		||||
    tap_code16(KC_V);
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue