diff options
author | QMK Bot <hello@qmk.fm> | 2023-05-04 02:08:15 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2023-05-04 02:08:15 +0000 |
commit | c13982e6abe7ce8eff1233fc3dcc9106a1ef225d (patch) | |
tree | 9f5f536c9638bdfbf06efadb1eb53033ce9b5e8c /keyboards/sofle/keymaps/via/keymap.c | |
parent | a662d366fe8f579a487b154bcdd4c3f03beb3034 (diff) | |
parent | a4b36f0b4b45a09ab940910b11b9be52356c721a (diff) |
Merge remote-tracking branch 'origin/master' into develop
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] = { /* |