From ce30cd2a010b7cad383b34432cc28d808a45266d Mon Sep 17 00:00:00 2001 From: Danny Date: Mon, 2 Mar 2020 18:55:57 -0500 Subject: Update encoder functions for Iris VIA keymap (#8295) --- keyboards/keebio/iris/keymaps/via/keymap.c | 7 +++++++ keyboards/keebio/iris/rev4/rev4.h | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/keyboards/keebio/iris/keymaps/via/keymap.c b/keyboards/keebio/iris/keymaps/via/keymap.c index c861ae845f..05eb42ae0b 100644 --- a/keyboards/keebio/iris/keymaps/via/keymap.c +++ b/keyboards/keebio/iris/keymaps/via/keymap.c @@ -68,6 +68,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { void encoder_update_user(uint8_t index, bool clockwise) { if (index == 0) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } + else if (index == 1) { if (clockwise) { tap_code(KC_PGDN); } else { diff --git a/keyboards/keebio/iris/rev4/rev4.h b/keyboards/keebio/iris/rev4/rev4.h index d8623348e4..06e515ebc6 100644 --- a/keyboards/keebio/iris/rev4/rev4.h +++ b/keyboards/keebio/iris/rev4/rev4.h @@ -3,7 +3,6 @@ #include "iris.h" #include "quantum.h" - #ifdef USE_I2C #include #ifdef __AVR__ -- cgit v1.2.3