logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

baumkuchen.c (378B)


  1. // Copyright 2023 takashicompany (@takashicompany)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "quantum.h"
  4. bool encoder_update_kb(uint8_t index, bool clockwise) {
  5. if (!encoder_update_user(index, clockwise)) {
  6. return false;
  7. }
  8. if (clockwise) {
  9. tap_code(KC_WH_D);
  10. } else {
  11. tap_code(KC_WH_U);
  12. }
  13. return true;
  14. }