summaryrefslogtreecommitdiff
path: root/keyboards/keebio/iris/keymaps
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2019-09-05 23:10:57 -0400
committerDrashna Jaelre <drashna@live.com>2019-09-05 20:10:57 -0700
commitf0ad3fc68a052be00c772b3b911079091015e57d (patch)
tree623f7f77244700a46e8fce7114fc423452c9a5ee /keyboards/keebio/iris/keymaps
parent98599173d7306d53cc8603d40bc50e229025fbdf (diff)
[Keyboard] Add Iris Rev 4 (#6660)
* Add Iris Rev. 4 * Fix EEPROM addresses
Diffstat (limited to 'keyboards/keebio/iris/keymaps')
-rw-r--r--keyboards/keebio/iris/keymaps/default/keymap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/keebio/iris/keymaps/default/keymap.c b/keyboards/keebio/iris/keymaps/default/keymap.c
index 758b842f75..942f963122 100644
--- a/keyboards/keebio/iris/keymaps/default/keymap.c
+++ b/keyboards/keebio/iris/keymaps/default/keymap.c
@@ -112,3 +112,20 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return true;
}
+
+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);
+ }
+ }
+}