summaryrefslogtreecommitdiff
path: root/keyboards/mechwild/puckbuddy/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mechwild/puckbuddy/keymaps/default/keymap.c')
-rw-r--r--keyboards/mechwild/puckbuddy/keymaps/default/keymap.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/keyboards/mechwild/puckbuddy/keymaps/default/keymap.c b/keyboards/mechwild/puckbuddy/keymaps/default/keymap.c
new file mode 100644
index 0000000000..9c7dabcc6a
--- /dev/null
+++ b/keyboards/mechwild/puckbuddy/keymaps/default/keymap.c
@@ -0,0 +1,64 @@
+// Copyright 2022 Kyle McCreery (@kylemccreery)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _BASE,
+ _FN1,
+ _FN2,
+ _FN3
+};
+
+/* Physical Layout:
+ * /-------------------\
+ * |ENC| 1 | 2 | 3 |ENC|
+ * |---+---'---'---+---|
+ * | 4 | | 5 |
+ * |---| |---|
+ * | 6 | | 7 |
+ * |---| |---|
+ * | 8 | | 9 |
+ * \-----,---,---,-----/
+ * | A | B | C | D |
+ * \---'---'---'---/
+ *
+ * Keymap Layout:
+ * ENC, 1, 2, 3, ENC,
+ * 4, 5,
+ * 6, 7,
+ * 8, A, B, C, D, 9,
+ *
+ */
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT(
+ KC_MUTE, MO(_FN3), MO(_FN2), MO(_FN1), LGUI(KC_D),
+ MO(_FN2), KC_HOME,
+ MO(_FN3), KC_END,
+ KC_BTN3, DPI_FINE,
+ KC_BTN1, KC_BTN2, KC_BTN2, KC_BTN1
+ ),
+ [_FN1] = LAYOUT(
+ RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, TAP_TOG,
+ DPI_UP, TAP_UP,
+ DPI_DN, TAP_DN,
+ KC_TRNS, KC_TRNS,
+ KC_HOME, KC_PGUP, KC_PGDN, KC_END
+ ),
+ [_FN2] = LAYOUT(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG,
+ KC_TRNS, RGB_MOD,
+ KC_TRNS, RGB_RMOD,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+ [_FN3] = LAYOUT(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ )
+};