summaryrefslogtreecommitdiff
path: root/keyboards/work_louder/nano/keymaps/via
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-11-17 12:54:12 -0800
committerGitHub <noreply@github.com>2021-11-17 20:54:12 +0000
commit10e896630ce9283b42b8cdbf44ccb81538dc9851 (patch)
treecc6d582c8ed05f2e12eae47233daab0b96081077 /keyboards/work_louder/nano/keymaps/via
parent254e26554b27aafc1d9676cec63263ede738bf57 (diff)
[Keyboard] Move encoder hacks into via keymaps for Work Louder boards (#15192)
Diffstat (limited to 'keyboards/work_louder/nano/keymaps/via')
-rw-r--r--keyboards/work_louder/nano/keymaps/via/keymap.c7
-rw-r--r--keyboards/work_louder/nano/keymaps/via/rules.mk2
2 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/work_louder/nano/keymaps/via/keymap.c b/keyboards/work_louder/nano/keymaps/via/keymap.c
index 84a54a4aac..7461172e07 100644
--- a/keyboards/work_louder/nano/keymaps/via/keymap.c
+++ b/keyboards/work_louder/nano/keymaps/via/keymap.c
@@ -16,6 +16,13 @@
#include QMK_KEYBOARD_H
+#define LAYOUT_via( \
+ k00, k01, k02, \
+ k00_a, k00_b \
+) { \
+ { k00, k01, k02, k00_a, k00_b } \
+}
+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
diff --git a/keyboards/work_louder/nano/keymaps/via/rules.mk b/keyboards/work_louder/nano/keymaps/via/rules.mk
index 36b7ba9cbc..6098ef3ad8 100644
--- a/keyboards/work_louder/nano/keymaps/via/rules.mk
+++ b/keyboards/work_louder/nano/keymaps/via/rules.mk
@@ -1,2 +1,4 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
+
+SRC += encoder_actions.c