summaryrefslogtreecommitdiff
path: root/keyboards/gmmk/pro/iso/keymaps/via/keymap.c
diff options
context:
space:
mode:
authorAndre Brait <andrebrait@gmail.com>2021-08-12 15:55:19 +0200
committerGitHub <noreply@github.com>2021-08-12 06:55:19 -0700
commit33f64903b4283edb77c80b527b40daa4eef6e784 (patch)
tree4ca61eb5a8d6f70e5838bdeffb40af2350abf768 /keyboards/gmmk/pro/iso/keymaps/via/keymap.c
parent7fe375aef5e197b2b7a903ee269358bb64ef960a (diff)
downloadqmk_firmware-33f64903b4283edb77c80b527b40daa4eef6e784.tar.gz
qmk_firmware-33f64903b4283edb77c80b527b40daa4eef6e784.zip
[Keymap] Add andrebrait layout for GMMK Pro (#13932)
Diffstat (limited to 'keyboards/gmmk/pro/iso/keymaps/via/keymap.c')
-rw-r--r--keyboards/gmmk/pro/iso/keymaps/via/keymap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyboards/gmmk/pro/iso/keymaps/via/keymap.c b/keyboards/gmmk/pro/iso/keymaps/via/keymap.c
index 7dae95e4d9..c83af17fe1 100644
--- a/keyboards/gmmk/pro/iso/keymaps/via/keymap.c
+++ b/keyboards/gmmk/pro/iso/keymaps/via/keymap.c
@@ -79,6 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// clang-format on
+#ifdef ENCODER_ENABLE
bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code(KC_VOLU);
@@ -87,3 +88,4 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
}
return true;
}
+#endif // ENCODER_ENABLE