diff options
author | Ibnu Daru Aji <[email protected]> | 2020-03-04 04:46:11 +0700 |
---|---|---|
committer | GitHub <[email protected]> | 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 0000000000..258321d4ca --- /dev/null +++ b/users/ibnuda/tapdance.h @@ -0,0 +1,23 @@ +#pragma once +#include "ibnuda.h" + +#ifdef TAP_DANCE_ENABLE +typedef enum { + SINGLE_TAP, + SINGLE_HOLD, + DOUBLE_TAP, +} td_state_t; + +int current_dance(qk_tap_dance_state_t *state); + +void dance_tmb_finished(qk_tap_dance_state_t *state, void *user_data); +void dance_tmb_reset(qk_tap_dance_state_t *state, void *user_data); + +// enum for tap dances. +enum { + TD_DLT_CTLDLT = 0, + TD_SCLN_CLN, + TD_LEFT_THUMB, +}; + +#endif // TAP_DANCE_ENABLE |