summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorRaphael Mangubat <16827478+raphkris@users.noreply.github.com>2023-04-02 12:23:26 -0500
committerGitHub <noreply@github.com>2023-04-02 11:23:26 -0600
commit5b8dae0d6117ddc227c5791a81c4765adb55f72a (patch)
tree6f88e5e23aeb9054fe9a123d8938cfc5feba649d /keyboards
parentfd56a2a1dcdda8cf4504c715ce86e6d2d2d0d26e (diff)
Enable encoder mapping in VIA for Keebio KBO-5000 (#20272)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/keebio/kbo5000/keymaps/via/keymap.c8
-rw-r--r--keyboards/keebio/kbo5000/keymaps/via/rules.mk1
2 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/keebio/kbo5000/keymaps/via/keymap.c b/keyboards/keebio/kbo5000/keymaps/via/keymap.c
index 2a0bbe6cd3..0050229b22 100644
--- a/keyboards/keebio/kbo5000/keymaps/via/keymap.c
+++ b/keyboards/keebio/kbo5000/keymaps/via/keymap.c
@@ -34,3 +34,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [0] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN) },
+ [1] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN) },
+ [2] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN) }
+};
+#endif
diff --git a/keyboards/keebio/kbo5000/keymaps/via/rules.mk b/keyboards/keebio/kbo5000/keymaps/via/rules.mk
index 36b7ba9cbc..aaf0497be1 100644
--- a/keyboards/keebio/kbo5000/keymaps/via/rules.mk
+++ b/keyboards/keebio/kbo5000/keymaps/via/rules.mk
@@ -1,2 +1,3 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
+ENCODER_MAP_ENABLE = yes \ No newline at end of file