You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
436 B
30 lines
436 B
/**
|
|
* 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)
|
|
};
|