Encoder map: NUM_DIRECTIONS (#21066)

This commit is contained in:
Nick Brassel 2023-05-28 13:38:24 +10:00 committed by GitHub
parent 2d486848f2
commit 9663bef1e9
3 changed files with 9 additions and 8 deletions

View file

@ -50,8 +50,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }
};
#endif
#endif