diff options
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.h')
| -rw-r--r-- | quantum/process_keycode/process_tap_dance.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h index 2b114dabd3..c0137c14a3 100644 --- a/quantum/process_keycode/process_tap_dance.h +++ b/quantum/process_keycode/process_tap_dance.h | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <stdint.h> | 19 | #include <stdint.h> |
| 20 | #include <stdbool.h> | 20 | #include <stdbool.h> |
| 21 | #include "action.h" | 21 | #include "action.h" |
| 22 | #include "quantum_keycodes.h" | ||
| 22 | 23 | ||
| 23 | typedef struct { | 24 | typedef struct { |
| 24 | uint16_t interrupting_keycode; | 25 | uint16_t interrupting_keycode; |
| @@ -74,8 +75,7 @@ typedef struct { | |||
| 74 | #define ACTION_TAP_DANCE_FN_ADVANCED_WITH_RELEASE(user_fn_on_each_tap, user_fn_on_each_release, user_fn_on_dance_finished, user_fn_on_dance_reset) \ | 75 | #define ACTION_TAP_DANCE_FN_ADVANCED_WITH_RELEASE(user_fn_on_each_tap, user_fn_on_each_release, user_fn_on_dance_finished, user_fn_on_dance_reset) \ |
| 75 | { .fn = {user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_dance_reset, user_fn_on_each_release}, .user_data = NULL, } | 76 | { .fn = {user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_dance_reset, user_fn_on_each_release}, .user_data = NULL, } |
| 76 | 77 | ||
| 77 | #define TD(n) (QK_TAP_DANCE | TD_INDEX(n)) | 78 | #define TD_INDEX(code) QK_TAP_DANCE_GET_INDEX(code) |
| 78 | #define TD_INDEX(code) ((code)&0xFF) | ||
| 79 | #define TAP_DANCE_KEYCODE(state) TD(((tap_dance_action_t *)state) - tap_dance_actions) | 79 | #define TAP_DANCE_KEYCODE(state) TD(((tap_dance_action_t *)state) - tap_dance_actions) |
| 80 | 80 | ||
| 81 | extern tap_dance_action_t tap_dance_actions[]; | 81 | extern tap_dance_action_t tap_dance_actions[]; |
