mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-09-29 21:38:47 +02:00
Replace preprocessor guards for ENCODER_MAP_ENABLE with !ENCODER_CALLBACKS_ENABLE.
This commit is contained in:
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
||||
[0] = LAYOUT(
|
||||
KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, TG(1)
|
||||
),
|
||||
@@ -28,9 +28,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
#if !defined(ENCODER_CALLBACKS_ENABLE)
|
||||
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 // ENCODER_MAP_ENABLE
|
||||
#endif // ENCODER_MAP_ENABLE
|
||||
|
||||
Reference in New Issue
Block a user