You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
374 B

  1. // Copyright 2022 Vitaly Volkov (@vlkv)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "chocofly.h"
  4. #ifdef ENCODER_ENABLE
  5. bool encoder_update_kb(uint8_t index, bool clockwise) {
  6. if (!encoder_update_user(index, clockwise)) { return false; }
  7. if (clockwise) {
  8. tap_code(KC_VOLU);
  9. } else {
  10. tap_code(KC_VOLD);
  11. }
  12. return false;
  13. }
  14. #endif