diff options
author | Danny <nooges@users.noreply.github.com> | 2023-06-30 21:36:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 21:36:11 -0400 |
commit | 6a61e2eeeec0827dfbe8226ef528143f35ab2457 (patch) | |
tree | 6403420c7ff846274b2c7dad90ac1052327188cf /keyboards/keebio/iris/rev8/rev8.c | |
parent | b5da6d228f02a5a3b7f8db3c7c8c3bbd49713ba7 (diff) |
Add Iris Rev. 8 (#21392)
Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Diffstat (limited to 'keyboards/keebio/iris/rev8/rev8.c')
-rw-r--r-- | keyboards/keebio/iris/rev8/rev8.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/keyboards/keebio/iris/rev8/rev8.c b/keyboards/keebio/iris/rev8/rev8.c new file mode 100644 index 0000000000..a6f0ac00a0 --- /dev/null +++ b/keyboards/keebio/iris/rev8/rev8.c @@ -0,0 +1,36 @@ +// Copyright 2023 Danny Nguyen (danny@keeb.io) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "quantum.h" + +#ifdef ENCODER_ENABLE +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (!encoder_update_user(index, clockwise)) { return false; } + 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); + } + } else if (index == 2) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } else if (index == 3) { + if (clockwise) { + tap_code(KC_PGDN); + } else { + tap_code(KC_PGUP); + } + } + return false; +} +#endif |