rotr.c 250 B

1234567891011
  1. #include "rotr.h"
  2. bool encoder_update_kb(uint8_t index, bool clockwise) {
  3. if (!encoder_update_user(index, clockwise)) return false;
  4. if (clockwise) {
  5. tap_code(KC_VOLU);
  6. } else {
  7. tap_code(KC_VOLD);
  8. }
  9. return true;
  10. }