diff options
Diffstat (limited to 'keyboards/keebio/quefrency/rev4/rev4.c')
-rw-r--r-- | keyboards/keebio/quefrency/rev4/rev4.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/keyboards/keebio/quefrency/rev4/rev4.c b/keyboards/keebio/quefrency/rev4/rev4.c index a66d19166..190135420 100644 --- a/keyboards/keebio/quefrency/rev4/rev4.c +++ b/keyboards/keebio/quefrency/rev4/rev4.c | |||
@@ -15,3 +15,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "quefrency.h" | 17 | #include "quefrency.h" |
18 | |||
19 | bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
20 | if (!encoder_update_user(index, clockwise)) { return false; } | ||
21 | if (index == 0) { | ||
22 | if (clockwise) { | ||
23 | tap_code(KC_PGDN); | ||
24 | } else { | ||
25 | tap_code(KC_PGUP); | ||
26 | } | ||
27 | } else if (index == 1) { | ||
28 | if (clockwise) { | ||
29 | tap_code(KC_VOLU); | ||
30 | } else { | ||
31 | tap_code(KC_VOLD); | ||
32 | } | ||
33 | } | ||
34 | return false; | ||
35 | } | ||