2020-06-29 23:00:36 +01:00
|
|
|
#include "rotr.h"
|
|
|
|
|
|
2021-05-29 14:38:50 -07:00
|
|
|
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);
|
|
|
|
|
}
|
2021-05-29 14:38:50 -07:00
|
|
|
return true;
|
2020-06-29 23:00:36 +01:00
|
|
|
}
|