Update encoder functions for Iris VIA keymap (#8295)
authorDanny <nooges@users.noreply.github.com>
Mon, 2 Mar 2020 23:55:57 +0000 (18:55 -0500)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 23:55:57 +0000 (23:55 +0000)
keyboards/keebio/iris/keymaps/via/keymap.c
keyboards/keebio/iris/rev4/rev4.h

index c861ae8..05eb42a 100644 (file)
@@ -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 {
index d862334..06e515e 100644 (file)
@@ -3,7 +3,6 @@
 #include "iris.h"
 #include "quantum.h"
 
-
 #ifdef USE_I2C
 #include <stddef.h>
 #ifdef __AVR__