diff options
Diffstat (limited to 'users/drashna/keyrecords/tap_dances.c')
-rw-r--r-- | users/drashna/keyrecords/tap_dances.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/users/drashna/keyrecords/tap_dances.c b/users/drashna/keyrecords/tap_dances.c index 63eb0c334..a1a743916 100644 --- a/users/drashna/keyrecords/tap_dances.c +++ b/users/drashna/keyrecords/tap_dances.c | |||
@@ -11,7 +11,12 @@ diablo_timer_t diablo_timer[NUM_OF_DIABLO_KEYS]; | |||
11 | // Otherwise, you will need to hit a bunch of times, or hit the "clear" command | 11 | // Otherwise, you will need to hit a bunch of times, or hit the "clear" command |
12 | uint8_t diablo_times[] = {0, 1, 3, 5, 10, 30}; | 12 | uint8_t diablo_times[] = {0, 1, 3, 5, 10, 30}; |
13 | 13 | ||
14 | // Cycle through the times for the macro, starting at 0, for disabled. | 14 | /** |
15 | * @brief Main function for handling diable related tap dances. | ||
16 | * | ||
17 | * @param state Main data struction contining information about events | ||
18 | * @param user_data Local data for the dance. Allows customization to be passed on to function | ||
19 | */ | ||
15 | void diablo_tapdance_master(qk_tap_dance_state_t *state, void *user_data) { | 20 | void diablo_tapdance_master(qk_tap_dance_state_t *state, void *user_data) { |
16 | diable_keys_t *diablo_keys = (diable_keys_t *)user_data; | 21 | diable_keys_t *diablo_keys = (diable_keys_t *)user_data; |
17 | // Sets the keycode based on the index | 22 | // Sets the keycode based on the index |
@@ -43,7 +48,10 @@ qk_tap_dance_action_t tap_dance_actions[] = { | |||
43 | [TD_D3_4] = ACTION_TAP_DANCE_DIABLO(3, KC_4), | 48 | [TD_D3_4] = ACTION_TAP_DANCE_DIABLO(3, KC_4), |
44 | }; | 49 | }; |
45 | 50 | ||
46 | // Checks each of the 4 timers/keys to see if enough time has elapsed | 51 | /** |
52 | * @brief Runs check to see if timer has elapsed for each dance, and sends keycodes, if it has. | ||
53 | * | ||
54 | */ | ||
47 | void run_diablo_macro_check(void) { | 55 | void run_diablo_macro_check(void) { |
48 | for (uint8_t index = 0; index < NUM_OF_DIABLO_KEYS; index++) { | 56 | for (uint8_t index = 0; index < NUM_OF_DIABLO_KEYS; index++) { |
49 | // if key_interval is 0, it's disabled, so only run if it's set. If it's set, check the timer. | 57 | // if key_interval is 0, it's disabled, so only run if it's set. If it's set, check the timer. |