Files
qmk/keyboards/rotr/rotr.c
T

12 lines
250 B
C
Raw Normal View History

2020-06-29 23:00:36 +01:00
#include "rotr.h"
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) return false;
2020-06-29 23:00:36 +01:00
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
return true;
2020-06-29 23:00:36 +01:00
}