From 910d603c657e4ad81a4e7a4c86a74e2e79aa1eaa Mon Sep 17 00:00:00 2001 From: Ibnu Daru Aji Date: Wed, 4 Mar 2020 04:46:11 +0700 Subject: [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 --- users/ibnuda/tapdance.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 users/ibnuda/tapdance.h (limited to 'users/ibnuda/tapdance.h') 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 -- cgit v1.2.3