1
0
Fork 0
forked from forks/qmk_firmware

Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
QMK Bot 2023-10-14 04:31:03 +00:00
commit fd18d95b77
2 changed files with 9 additions and 12 deletions

View file

@ -53,17 +53,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
#ifdef ENCODER_ENABLE
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code16(KC_WH_U);
} else {
tap_code16(KC_WH_D);
}
}
return false;
}
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[_BASE] = { ENCODER_CCW_CW(KC_WH_U, KC_WH_D) },
[_FN1] = { ENCODER_CCW_CW(KC_NO, KC_NO) },
[_FN2] = { ENCODER_CCW_CW(KC_NO, KC_NO) },
[_FN3] = { ENCODER_CCW_CW(KC_NO, KC_NO) },
};
#endif
#ifdef RGBLIGHT_LAYERS

View file

@ -1 +1,2 @@
ENCODER_MAP_ENABLE = yes
VIA_ENABLE = yes