diff options
author | adophoxia <100170946+adophoxia@users.noreply.github.com> | 2022-10-06 22:32:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 22:32:19 -0700 |
commit | ca2f9e4c8f483da93d7c082b4640832912bec76a (patch) | |
tree | a6c9ebf7725ae42312f696876f8ecbfaa04afb3f /keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c | |
parent | 1a9058b2d1f4516a746f61a8b61b7e4399742ad8 (diff) |
Add encoder map support for Keychron Q1v1 and Q2 (#18598)
Diffstat (limited to 'keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c b/keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c index f5a0667601..3079050204 100644 --- a/keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c +++ b/keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c @@ -72,6 +72,16 @@ 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, KC_TRNS) }; +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [MAC_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, + [WIN_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, + [_FN1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, + [_FN2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, + [_FN3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, +}; +#endif + bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case KC_MISSION_CONTROL: |