custom_encoder.c 271 B

12345678910111213
  1. #include "custom_encoder.h"
  2. #ifdef ENCODER_ENABLE
  3. const uint16_t PROGMEM encoders[][2] = {
  4. { KC_PGUP, KC_PGDN },
  5. { KC_DOWN, KC_UP }
  6. }
  7. void encoder_update_user(uint8_t index, bool clockwise)
  8. {
  9. tap_code16(pgm_read_word(&encoders[index][clockwise]));
  10. }
  11. #endif