diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-09-12 16:48:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-13 00:48:11 +0100 |
| commit | ab34ecb66993f0cb7fc2a6aa960d0d0c4bafb773 (patch) | |
| tree | fa071fa3cf2c1f982cb23a14295d129afeeffcce /quantum/action.h | |
| parent | 10362777a56194bf830f144d893fbd2ade2c174e (diff) | |
Apply `TAP_CODE_DELAY` to Tap Dance key sequences (#14412)
* Add support to tap dances
* Move default tap code defines to header file
Diffstat (limited to 'quantum/action.h')
| -rw-r--r-- | quantum/action.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/action.h b/quantum/action.h index 3d357b33b8..8a357ded87 100644 --- a/quantum/action.h +++ b/quantum/action.h | |||
| @@ -38,6 +38,13 @@ extern "C" { | |||
| 38 | # endif | 38 | # endif |
| 39 | #endif | 39 | #endif |
| 40 | 40 | ||
| 41 | #ifndef TAP_CODE_DELAY | ||
| 42 | # define TAP_CODE_DELAY 0 | ||
| 43 | #endif | ||
| 44 | #ifndef TAP_HOLD_CAPS_DELAY | ||
| 45 | # define TAP_HOLD_CAPS_DELAY 80 | ||
| 46 | #endif | ||
| 47 | |||
| 41 | /* tapping count and state */ | 48 | /* tapping count and state */ |
| 42 | typedef struct { | 49 | typedef struct { |
| 43 | bool interrupted : 1; | 50 | bool interrupted : 1; |
