summaryrefslogtreecommitdiff
path: root/keyboards/dz60/keymaps/_bonfire/keymap-parts/defs.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dz60/keymaps/_bonfire/keymap-parts/defs.c')
-rw-r--r--keyboards/dz60/keymaps/_bonfire/keymap-parts/defs.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboards/dz60/keymaps/_bonfire/keymap-parts/defs.c b/keyboards/dz60/keymaps/_bonfire/keymap-parts/defs.c
new file mode 100644
index 0000000000..95351b43ba
--- /dev/null
+++ b/keyboards/dz60/keymaps/_bonfire/keymap-parts/defs.c
@@ -0,0 +1,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)
+};