forked from mirrors/qmk_userspace
[Keymap] Xulkal user changes (#6044)
* Xulkal user changes Xulkal user changes * Reduce code duplication * Massive user code refactor
This commit is contained in:
parent
02b3fadbac
commit
4f788c2ae9
18 changed files with 334 additions and 260 deletions
13
users/xulkal/custom_encoder.c
Normal file
13
users/xulkal/custom_encoder.c
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue