mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-27 19:16:40 +06:00
4f788c2ae9
* Xulkal user changes Xulkal user changes * Reduce code duplication * Massive user code refactor
14 lines
271 B
C
14 lines
271 B
C
#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
|