vial: initial encoder support

This commit is contained in:
Ilya Zhuravlev
2020-12-06 19:23:57 -05:00
parent 71280fe884
commit 10e15c09a4
6 changed files with 110 additions and 9 deletions

View File

@ -60,6 +60,11 @@ __attribute__((weak)) void encoder_update_user(int8_t index, bool clockwise) {}
__attribute__((weak)) void encoder_update_kb(int8_t index, bool clockwise) { encoder_update_user(index, clockwise); }
#ifdef VIAL_ENCODERS_ENABLE
#include "vial.h"
#define encoder_update_kb vial_encoder_update
#endif
void encoder_init(void) {
#if defined(SPLIT_KEYBOARD) && defined(ENCODERS_PAD_A_RIGHT) && defined(ENCODERS_PAD_B_RIGHT)
if (!isLeftHand) {