aboutsummaryrefslogtreecommitdiff
path: root/users/sethBarberee/tap_dance.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/sethBarberee/tap_dance.h')
-rw-r--r--users/sethBarberee/tap_dance.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/users/sethBarberee/tap_dance.h b/users/sethBarberee/tap_dance.h
new file mode 100644
index 000000000..709185b39
--- /dev/null
+++ b/users/sethBarberee/tap_dance.h
@@ -0,0 +1,43 @@
1 /* Copyright 2021 SethBarberee <seth.barberee@gmail.com>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17#include "sethBarberee.h"
18
19//Define a type for as many tap dance states as you need
20enum {
21 SINGLE_TAP = 1,
22 SINGLE_HOLD = 2,
23 DOUBLE_TAP = 3,
24 DOUBLE_HOLD = 4,
25 DOUBLE_SINGLE_TAP = 5, //send two single taps
26 TRIPLE_TAP = 6,
27 TRIPLE_HOLD = 7
28};
29
30
31enum {
32 TD_ECAP = 0,
33};
34
35#define KC_ECAP TD(TD_ECAP)
36
37typedef struct {
38 bool toggled; // store whether we have toggled caps lock
39#ifdef RGBLIGHT_ENABLE
40 int normal_mode;
41#endif // RGBLIGHT_ENABLE
42 int state;
43} tap;