summaryrefslogtreecommitdiff
path: root/keyboards/dz60/keymaps/_bonfire/keymap-parts/defs.c
blob: 95351b43ba37d6e4608112fb72d13dad133682ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * Variables
 * 
 */
int held_esc_threshold = 230;
bool is_esc_held = false;
uint16_t held_esc_timer = 0;

/**
 * Define Layers
 */
enum layers {
    BASE = 0,
    NRMN,
    GAME,
    FCTN,
    KEYB
};

/**
 * Define Custom Keycodes
 */
enum custom_keycodes { 
    HLD_ESC = SAFE_RANGE,
    MOD_UP = MT(MOD_RSFT, KC_UP),
    MOD_RT = MT(MOD_HYPR, KC_RIGHT),
    MOD_DN = MT(MOD_RCTL, KC_DOWN),
    MOD_LT = MT(MOD_RGUI, KC_LEFT)
};