Encoder map: NUM_DIRECTIONS (#21066)

This commit is contained in:
Nick Brassel
2023-05-28 13:38:24 +10:00
committed by GitHub
parent f98f8eedf0
commit 8c9f54d70b
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