2019-09-02 16:40:01 +02:00
|
|
|
#pragma once
|
|
|
|
#include "ninjonas.h"
|
|
|
|
|
2020-02-17 10:30:03 +01:00
|
|
|
typedef struct {
|
|
|
|
bool is_press_action;
|
|
|
|
int state;
|
|
|
|
} tap;
|
|
|
|
|
|
|
|
enum tapdance_types{
|
|
|
|
SINGLE_TAP = 1,
|
|
|
|
SINGLE_HOLD = 2,
|
2020-03-14 00:56:21 +01:00
|
|
|
DOUBLE_TAP = 3,
|
|
|
|
DOUBLE_HOLD = 4,
|
|
|
|
DOUBLE_SINGLE_TAP = 5, //send two single taps
|
|
|
|
TRIPLE_TAP = 6,
|
|
|
|
TRIPLE_HOLD = 7
|
2020-02-17 10:30:03 +01:00
|
|
|
};
|
|
|
|
|
2019-09-02 16:40:01 +02:00
|
|
|
enum custom_tapdances{
|
|
|
|
TD_ESC_CAPS = 0,
|
|
|
|
TD_LBRC_BACK,
|
|
|
|
TD_RBRC_FWD,
|
|
|
|
TD_TAB_CTRLTAB,
|
|
|
|
TD_GRV_CTRLGRV,
|
|
|
|
TD_GUI_GUISPC,
|
2020-03-14 00:56:21 +01:00
|
|
|
TD_COPY_PASTE_APP,
|
2020-02-17 10:30:03 +01:00
|
|
|
TD_Y_NUMPAD,
|
2019-09-02 16:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#define T_ESC TD(TD_ESC_CAPS) // Tap for ESC, double tap for CAPSLOCK
|
|
|
|
#define T_LBRC TD(TD_LBRC_BACK) // Tap for [, double tap for back browser
|
|
|
|
#define T_RBRC TD(TD_RBRC_FWD) // Tap for ], double tap for forward browser
|
|
|
|
#define T_TAB TD(TD_TAB_CTRLTAB) // Tap for TAB, double tap for CTRL + TAB
|
2020-02-17 10:30:03 +01:00
|
|
|
#define T_GRV TD(TD_GRV_CTRLGRV) // Tap for GRV, double tap for Cmd + GRV
|
|
|
|
#define T_GUI TD(TD_GUI_GUISPC) // Tap for Cmd, double tap for Cmd + Space
|
2020-03-14 00:56:21 +01:00
|
|
|
#define T_CPAP TD(TD_COPY_PASTE_APP) // Tap for paste, hold for copy, double tap for Line App
|
2020-02-17 10:30:03 +01:00
|
|
|
#define T_Y TD(TD_Y_NUMPAD) // Tap for Y, double tap for NUMPAD
|