diff options
author | QMK Bot <hello@qmk.fm> | 2022-07-26 20:25:59 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-07-26 20:25:59 +0000 |
commit | ff5848992cc7941885648161e77e8913c8e0fceb (patch) | |
tree | 86416237eaa6073db25fbe7f387ee282f17fe0af /keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c | |
parent | 53ca6338c78d2f1d8f86249099f955d1c0a31cfc (diff) | |
parent | fc9654a1d05439aea3396954b9f482e680a6775b (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c')
-rw-r--r-- | keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c b/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c index 6062b8c73d..8ed7f60dd7 100644 --- a/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c +++ b/keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c @@ -65,19 +65,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ) }; -#ifdef ENCODER_ENABLE -bool encoder_update_user(uint8_t index, bool clockwise) { - switch (index) { - case 0: - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - break; - } - return true; -} +#ifdef ENCODER_MAP_ENABLE + const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, + [1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, + [2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, + [3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, + }; #endif #ifdef OLED_ENABLE |