summaryrefslogtreecommitdiff
path: root/quantum/action.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-09-12 16:48:11 -0700
committerGitHub <noreply@github.com>2021-09-13 00:48:11 +0100
commitab34ecb66993f0cb7fc2a6aa960d0d0c4bafb773 (patch)
treefa071fa3cf2c1f982cb23a14295d129afeeffcce /quantum/action.h
parent10362777a56194bf830f144d893fbd2ade2c174e (diff)
downloadqmk_firmware-ab34ecb66993f0cb7fc2a6aa960d0d0c4bafb773.tar.gz
qmk_firmware-ab34ecb66993f0cb7fc2a6aa960d0d0c4bafb773.zip
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.h7
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" {
# endif
#endif
+#ifndef TAP_CODE_DELAY
+# define TAP_CODE_DELAY 0
+#endif
+#ifndef TAP_HOLD_CAPS_DELAY
+# define TAP_HOLD_CAPS_DELAY 80
+#endif
+
/* tapping count and state */
typedef struct {
bool interrupted : 1;