aboutsummaryrefslogtreecommitdiffstats
path: root/users/ibnuda/tapdance.h
blob: 258321d4ca53af4463c1f14e336f6855aa70537c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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