summaryrefslogtreecommitdiff
path: root/keyboards/mechwild/puckbuddy/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mechwild/puckbuddy/keymaps')
-rw-r--r--keyboards/mechwild/puckbuddy/keymaps/default/keymap.c64
-rw-r--r--keyboards/mechwild/puckbuddy/keymaps/via/keymap.c64
-rw-r--r--keyboards/mechwild/puckbuddy/keymaps/via/rules.mk1
3 files changed, 129 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..614d70469d
--- /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, QK_BOOT,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ )
+};
diff --git a/keyboards/mechwild/puckbuddy/keymaps/via/keymap.c b/keyboards/mechwild/puckbuddy/keymaps/via/keymap.c
new file mode 100644
index 0000000000..614d70469d
--- /dev/null
+++ b/keyboards/mechwild/puckbuddy/keymaps/via/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, QK_BOOT,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ )
+};
diff --git a/keyboards/mechwild/puckbuddy/keymaps/via/rules.mk b/keyboards/mechwild/puckbuddy/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/mechwild/puckbuddy/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes