aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2020-03-02 18:55:57 -0500
committerGitHub <noreply@github.com>2020-03-02 23:55:57 +0000
commitce30cd2a010b7cad383b34432cc28d808a45266d (patch)
tree57c7cb06b2d1fd1996f86ef847580f3a0279472a /keyboards
parent552f8d81b9bff8010b328ee944d50830cfcaea5c (diff)
downloadfirmware-ce30cd2a010b7cad383b34432cc28d808a45266d.tar.gz
firmware-ce30cd2a010b7cad383b34432cc28d808a45266d.tar.bz2
firmware-ce30cd2a010b7cad383b34432cc28d808a45266d.zip
Update encoder functions for Iris VIA keymap (#8295)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/keebio/iris/keymaps/via/keymap.c7
-rw-r--r--keyboards/keebio/iris/rev4/rev4.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/keyboards/keebio/iris/keymaps/via/keymap.c b/keyboards/keebio/iris/keymaps/via/keymap.c
index c861ae845..05eb42ae0 100644
--- a/keyboards/keebio/iris/keymaps/via/keymap.c
+++ b/keyboards/keebio/iris/keymaps/via/keymap.c
@@ -69,6 +69,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 {
tap_code(KC_PGUP);
diff --git a/keyboards/keebio/iris/rev4/rev4.h b/keyboards/keebio/iris/rev4/rev4.h
index d8623348e..06e515ebc 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 <stddef.h>
#ifdef __AVR__