Added comments
parent
383d64bb4c
commit
2355afd9dd
|
@ -8,6 +8,7 @@ typedef struct {
|
||||||
|
|
||||||
static tap dance_state[1];
|
static tap dance_state[1];
|
||||||
|
|
||||||
|
// Called on every tap
|
||||||
void td_wmlayout_dance(qk_tap_dance_state_t *state, void *user_data) {
|
void td_wmlayout_dance(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
if(state->count == 3) {
|
if(state->count == 3) {
|
||||||
tap_code16(LGUI(KC_L));
|
tap_code16(LGUI(KC_L));
|
||||||
|
@ -19,6 +20,7 @@ void td_wmlayout_dance(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Called when action finishes
|
||||||
void td_wmlayout_finished(qk_tap_dance_state_t *state, void *user_data) {
|
void td_wmlayout_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
dance_state[0].step = dance_step(state);
|
dance_state[0].step = dance_step(state);
|
||||||
switch (dance_state[0].step) {
|
switch (dance_state[0].step) {
|
||||||
|
@ -35,6 +37,7 @@ void td_wmlayout_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Called when action resets
|
||||||
void td_wmlayout_reset(qk_tap_dance_state_t *state, void *user_data) {
|
void td_wmlayout_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
wait_ms(10);
|
wait_ms(10);
|
||||||
switch (dance_state[0].step) {
|
switch (dance_state[0].step) {
|
||||||
|
|
Loading…
Reference in New Issue