summaryrefslogtreecommitdiff
path: root/aktersnurra/tap_dance.h
blob: 5c7ec144aad50fcd205071ed6004fb242e26a639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include QMK_KEYBOARD_H

typedef enum { _COLEMAK_DH, _LOWER, _RAISE } layers;

typedef enum { SINGLE_TAP, SINGLE_HOLD, DOUBLE_SINGLE_TAP } td_state_t;

typedef enum { M_ESC, TD_LOWER, TD_RAISE } tap_dances;

int cur_dance(qk_tap_dance_state_t *state);

void raise_finished(qk_tap_dance_state_t *state, void *user_data);
void raise_reset(qk_tap_dance_state_t *state, void *user_data);

void lower_finished(qk_tap_dance_state_t *state, void *user_data);
void lower_reset(qk_tap_dance_state_t *state, void *user_data);