diff options
author | Albert Y <76888457+filterpaper@users.noreply.github.com> | 2022-06-12 22:34:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 15:34:29 +0100 |
commit | b5a53a994652e1fda5dbb5a3af2fd85e4ecaa951 (patch) | |
tree | 854ad888f7575cae790390ec4aa5f876d212e65f /keyboards/macro3/keymaps | |
parent | 3f841a24f0461b45aba52c4c1fee7c911e051d37 (diff) |
Add encoder map (#17361)
Diffstat (limited to 'keyboards/macro3/keymaps')
-rw-r--r-- | keyboards/macro3/keymaps/default/keymap.c | 7 | ||||
-rw-r--r-- | keyboards/macro3/keymaps/default/rules.mk | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/keyboards/macro3/keymaps/default/keymap.c b/keyboards/macro3/keymaps/default/keymap.c index e866d481df..8881612a3f 100644 --- a/keyboards/macro3/keymaps/default/keymap.c +++ b/keyboards/macro3/keymaps/default/keymap.c @@ -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 + diff --git a/keyboards/macro3/keymaps/default/rules.mk b/keyboards/macro3/keymaps/default/rules.mk new file mode 100644 index 0000000000..ee32568148 --- /dev/null +++ b/keyboards/macro3/keymaps/default/rules.mk @@ -0,0 +1 @@ +ENCODER_MAP_ENABLE = yes |