diff options
author | Ibnu Daru Aji <ibnuda@users.noreply.github.com> | 2020-03-04 04:46:11 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 13:46:11 -0800 |
commit | 910d603c657e4ad81a4e7a4c86a74e2e79aa1eaa (patch) | |
tree | 0f6261380999d09444ed5c4313e336ef9f534a58 /users/ibnuda/tapdance.h | |
parent | ad96e995afc6a8132a054ccab2b08e3501719159 (diff) | |
download | qmk_firmware-910d603c657e4ad81a4e7a4c86a74e2e79aa1eaa.tar.gz qmk_firmware-910d603c657e4ad81a4e7a4c86a74e2e79aa1eaa.zip |
[Keymap] new userspace for ibnuda (#8221)
* to ease the maintenance for some boards ibnuda has.
* followed ridingqwerty's suggestion on 8821.
* folloing drashna's suggestion on qmk's 8221.
* following drashn's suggestion on qmk's 8211
Diffstat (limited to 'users/ibnuda/tapdance.h')
-rw-r--r-- | users/ibnuda/tapdance.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/users/ibnuda/tapdance.h b/users/ibnuda/tapdance.h new file mode 100644 index 000000000..258321d4c --- /dev/null +++ b/users/ibnuda/tapdance.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #pragma once | ||
2 | #include "ibnuda.h" | ||
3 | |||
4 | #ifdef TAP_DANCE_ENABLE | ||
5 | typedef enum { | ||
6 | SINGLE_TAP, | ||
7 | SINGLE_HOLD, | ||
8 | DOUBLE_TAP, | ||
9 | } td_state_t; | ||
10 | |||
11 | int current_dance(qk_tap_dance_state_t *state); | ||
12 | |||
13 | void dance_tmb_finished(qk_tap_dance_state_t *state, void *user_data); | ||
14 | void dance_tmb_reset(qk_tap_dance_state_t *state, void *user_data); | ||
15 | |||
16 | // enum for tap dances. | ||
17 | enum { | ||
18 | TD_DLT_CTLDLT = 0, | ||
19 | TD_SCLN_CLN, | ||
20 | TD_LEFT_THUMB, | ||
21 | }; | ||
22 | |||
23 | #endif // TAP_DANCE_ENABLE | ||