summaryrefslogtreecommitdiffstats
path: root/users/xulkal/custom_encoder.c
blob: 09f1cda0d155513f07625e3571d39d182a90cc4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "custom_encoder.h"

#ifdef ENCODER_ENABLE
const uint16_t PROGMEM encoders[][2] = {
    { KC_PGUP, KC_PGDN },
    { KC_DOWN, KC_UP }
}

void encoder_update_user(uint8_t index, bool clockwise)
{
    tap_code16(pgm_read_word(&encoders[index][clockwise]));
}
#endif