Tap Dance: remove qk_ prefix (#19313)
				
					
				
			This commit is contained in:
		
							parent
							
								
									83e8e5845a
								
							
						
					
					
						commit
						1978007fae
					
				
					 298 changed files with 1327 additions and 1327 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,7 @@
 | 
			
		|||
#include "tap_dance.h"
 | 
			
		||||
 | 
			
		||||
// Shamelessly stolen from QMK Docs
 | 
			
		||||
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;
 | 
			
		||||
| 
						 | 
				
			
			@ -44,7 +44,7 @@ tap caps_status = {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void dance_ecap_finished (qk_tap_dance_state_t *state, void *user_data){
 | 
			
		||||
void dance_ecap_finished (tap_dance_state_t *state, void *user_data){
 | 
			
		||||
    caps_status.state = cur_dance(state);
 | 
			
		||||
    switch(caps_status.state){
 | 
			
		||||
        case SINGLE_TAP:
 | 
			
		||||
| 
						 | 
				
			
			@ -74,7 +74,7 @@ void dance_ecap_finished (qk_tap_dance_state_t *state, void *user_data){
 | 
			
		|||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void dance_ecap_reset (qk_tap_dance_state_t *state, void *user_data){
 | 
			
		||||
void dance_ecap_reset (tap_dance_state_t *state, void *user_data){
 | 
			
		||||
    if(caps_status.state == SINGLE_HOLD){
 | 
			
		||||
        unregister_code(KC_LCTL);
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			@ -82,7 +82,7 @@ void dance_ecap_reset (qk_tap_dance_state_t *state, void *user_data){
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
//Tap Dance Definitions
 | 
			
		||||
qk_tap_dance_action_t tap_dance_actions[] = {
 | 
			
		||||
tap_dance_action_t tap_dance_actions[] = {
 | 
			
		||||
  //Tap once for Esc, twice for Caps Lock
 | 
			
		||||
  [TD_ECAP]  = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_ecap_finished, dance_ecap_reset),
 | 
			
		||||
// Other declarations would go here, separated by commas, if you have them
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue