diff options
author | Less/Rikki <86894501+lesshonor@users.noreply.github.com> | 2022-07-26 16:25:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 21:25:23 +0100 |
commit | fc9654a1d05439aea3396954b9f482e680a6775b (patch) | |
tree | fb4943ea7c88d78bf3a2b82d8dd19fc6815c8ca9 /keyboards/mechwild/mercutio/keymaps/bongocat | |
parent | 5f36285fc5905913aea0671e037bb343fd84391f (diff) |
feat: encoder map, OLED & encoder kb-level config (#17767)
Diffstat (limited to 'keyboards/mechwild/mercutio/keymaps/bongocat')
-rw-r--r-- | keyboards/mechwild/mercutio/keymaps/bongocat/keymap.c | 20 | ||||
-rw-r--r-- | keyboards/mechwild/mercutio/keymaps/bongocat/rules.mk | 3 |
2 files changed, 9 insertions, 14 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 diff --git a/keyboards/mechwild/mercutio/keymaps/bongocat/rules.mk b/keyboards/mechwild/mercutio/keymaps/bongocat/rules.mk index a475e2b6cd..74290f3abe 100644 --- a/keyboards/mechwild/mercutio/keymaps/bongocat/rules.mk +++ b/keyboards/mechwild/mercutio/keymaps/bongocat/rules.mk @@ -1,3 +1,4 @@ WPM_ENABLE = yes VIA_ENABLE = yes -MOUSEKEY_ENABLE = no
\ No newline at end of file +MOUSEKEY_ENABLE = no +ENCODER_MAP_ENABLE = yes |