summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q2/rev_0113/keymaps
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-10-07 05:33:01 +0000
committerQMK Bot <hello@qmk.fm>2022-10-07 05:33:01 +0000
commit7c4a0125095bb78bfa322c599cdddfd3704acf17 (patch)
treeb1075a0ec018e6130bb86475ef250a8e4add83dc /keyboards/keychron/q2/rev_0113/keymaps
parentc9d66bee707c8573b74dad45a1a457b172b249a2 (diff)
parentca2f9e4c8f483da93d7c082b4640832912bec76a (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/keychron/q2/rev_0113/keymaps')
-rw-r--r--keyboards/keychron/q2/rev_0113/keymaps/default/keymap.c10
-rw-r--r--keyboards/keychron/q2/rev_0113/keymaps/default/rules.mk1
2 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/keychron/q2/rev_0113/keymaps/default/keymap.c b/keyboards/keychron/q2/rev_0113/keymaps/default/keymap.c
index a44e7e4cc9..7fb7303601 100644
--- a/keyboards/keychron/q2/rev_0113/keymaps/default/keymap.c
+++ b/keyboards/keychron/q2/rev_0113/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:
diff --git a/keyboards/keychron/q2/rev_0113/keymaps/default/rules.mk b/keyboards/keychron/q2/rev_0113/keymaps/default/rules.mk
new file mode 100644
index 0000000000..a40474b4d5
--- /dev/null
+++ b/keyboards/keychron/q2/rev_0113/keymaps/default/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes \ No newline at end of file