Tap Dance: remove qk_
prefix (#19313)
This commit is contained in:
@@ -43,13 +43,13 @@ enum {
|
||||
|
||||
// Declare the functions to be used with your tap dance key(s)
|
||||
// Function associated with all tap dances
|
||||
uint8_t cur_dance(qk_tap_dance_state_t *state);
|
||||
uint8_t cur_dance(tap_dance_state_t *state);
|
||||
// Functions associated with individual tap dances
|
||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data);
|
||||
void ql_reset(qk_tap_dance_state_t *state, void *user_data);
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data);
|
||||
void ql_reset(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[] = {
|
||||
[TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
|
||||
[TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset),
|
||||
};
|
||||
@@ -279,7 +279,7 @@ typedef struct {
|
||||
} tap;
|
||||
|
||||
// Determine the current tap dance state
|
||||
uint8_t cur_dance(qk_tap_dance_state_t *state) {
|
||||
uint8_t cur_dance(tap_dance_state_t *state) {
|
||||
if (state->count == 1) {
|
||||
if (!state->pressed) {
|
||||
return SINGLE_TAP;
|
||||
@@ -310,7 +310,7 @@ static tap ql_tap_state = {
|
||||
};
|
||||
|
||||
// Functions that control what our tap dance key does
|
||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data) {
|
||||
ql_tap_state.state = cur_dance(state);
|
||||
switch(TAP_DANCE_KEYCODE(state)) {
|
||||
case TD(TD_ESC_NUM): // ESC key action
|
||||
@@ -340,7 +340,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
}
|
||||
|
||||
void ql_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||
void ql_reset(tap_dance_state_t *state, void *user_data) {
|
||||
switch(TAP_DANCE_KEYCODE(state)) {
|
||||
case TD(TD_ESC_NUM):
|
||||
// If the key was held down and now is released then switch off the layer
|
||||
|
@@ -42,13 +42,13 @@ enum {
|
||||
|
||||
// Declare the functions to be used with your tap dance key(s)
|
||||
// Function associated with all tap dances
|
||||
uint8_t cur_dance(qk_tap_dance_state_t *state);
|
||||
uint8_t cur_dance(tap_dance_state_t *state);
|
||||
// Functions associated with individual tap dances
|
||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data);
|
||||
void ql_reset(qk_tap_dance_state_t *state, void *user_data);
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data);
|
||||
void ql_reset(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[] = {
|
||||
[TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
|
||||
[TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset),
|
||||
};
|
||||
@@ -298,7 +298,7 @@ typedef struct {
|
||||
} tap;
|
||||
|
||||
// Determine the current tap dance state
|
||||
uint8_t cur_dance(qk_tap_dance_state_t *state) {
|
||||
uint8_t cur_dance(tap_dance_state_t *state) {
|
||||
if (state->count == 1) {
|
||||
if (!state->pressed) {
|
||||
return SINGLE_TAP;
|
||||
@@ -329,7 +329,7 @@ static tap ql_tap_state = {
|
||||
};
|
||||
|
||||
// Functions that control what our tap dance key does
|
||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data) {
|
||||
ql_tap_state.state = cur_dance(state);
|
||||
switch(TAP_DANCE_KEYCODE(state)) {
|
||||
case TD(TD_ESC_NUM): // ESC key action
|
||||
@@ -359,7 +359,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
}
|
||||
|
||||
void ql_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||
void ql_reset(tap_dance_state_t *state, void *user_data) {
|
||||
switch(TAP_DANCE_KEYCODE(state)) {
|
||||
case TD(TD_ESC_NUM):
|
||||
// If the key was held down and now is released then switch off the layer
|
||||
|
@@ -43,13 +43,13 @@ enum {
|
||||
|
||||
// Declare the functions to be used with your tap dance key(s)
|
||||
// Function associated with all tap dances
|
||||
uint8_t cur_dance(qk_tap_dance_state_t *state);
|
||||
uint8_t cur_dance(tap_dance_state_t *state);
|
||||
// Functions associated with individual tap dances
|
||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data);
|
||||
void ql_reset(qk_tap_dance_state_t *state, void *user_data);
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data);
|
||||
void ql_reset(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[] = {
|
||||
[TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
|
||||
[TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset),
|
||||
};
|
||||
@@ -300,7 +300,7 @@ typedef struct {
|
||||
} tap;
|
||||
|
||||
// Determine the current tap dance state
|
||||
uint8_t cur_dance(qk_tap_dance_state_t *state) {
|
||||
uint8_t cur_dance(tap_dance_state_t *state) {
|
||||
if (state->count == 1) {
|
||||
if (!state->pressed) {
|
||||
return SINGLE_TAP;
|
||||
@@ -331,7 +331,7 @@ static tap ql_tap_state = {
|
||||
};
|
||||
|
||||
// Functions that control what our tap dance key does
|
||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||
void ql_finished(tap_dance_state_t *state, void *user_data) {
|
||||
ql_tap_state.state = cur_dance(state);
|
||||
switch(TAP_DANCE_KEYCODE(state)) {
|
||||
case TD(TD_ESC_NUM): // ESC key action
|
||||
@@ -361,7 +361,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
}
|
||||
|
||||
void ql_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||
void ql_reset(tap_dance_state_t *state, void *user_data) {
|
||||
switch(TAP_DANCE_KEYCODE(state)) {
|
||||
case TD(TD_ESC_NUM):
|
||||
// If the key was held down and now is released then switch off the layer
|
||||
|
Reference in New Issue
Block a user