diff options
Diffstat (limited to 'keyboards/sofle/keymaps/via/keymap.c')
-rw-r--r-- | keyboards/sofle/keymaps/via/keymap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/keyboards/sofle/keymaps/via/keymap.c b/keyboards/sofle/keymaps/via/keymap.c index 4c83e58f7d..bbb4c64826 100644 --- a/keyboards/sofle/keymaps/via/keymap.c +++ b/keyboards/sofle/keymaps/via/keymap.c @@ -17,9 +17,15 @@ #include QMK_KEYBOARD_H #include "oled.c" -#include "encoder.c" -//Default keymap. This can be changed in Via. Use oled.c and encoder.c to change beavior that Via cannot change. +#ifdef ENCODER_MAP_ENABLE +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_PGDN, KC_PGUP) }, + [1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }, + [2] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI) }, + [3] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_RMOD, RGB_MOD)} +}; +#endif const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* |