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.

18 lines
444 B

  1. // Copyright 2022 s8erdude (@jpuerto96)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "io_mini1800.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 (index == 0) {
  8. if (clockwise) {
  9. tap_code_delay(KC_VOLU, 10);
  10. } else {
  11. tap_code_delay(KC_VOLD, 10);
  12. }
  13. }
  14. return true;
  15. }
  16. #endif