Skip to content

Commit

Permalink
Add encoder map (#17361)
Browse files Browse the repository at this point in the history
  • Loading branch information
filterpaper authored Jun 12, 2022
1 parent 3f841a2 commit b5a53a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions keyboards/macro3/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};

#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD), ENCODER_CCW_CW(KC_MNXT, KC_MPRV) },
[1] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD), ENCODER_CCW_CW(KC_PGDN, KC_PGUP) },
};
#endif

1 change: 1 addition & 0 deletions keyboards/macro3/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes

0 comments on commit b5a53a9

Please sign in to comment.