Skip to content

Commit

Permalink
Add encoder map (qmk#17361)
Browse files Browse the repository at this point in the history
  • Loading branch information
filterpaper authored and zykrah committed Jul 2, 2022
1 parent cdf7972 commit a308f10
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 a308f10

Please sign in to comment.