summaryrefslogtreecommitdiffstats
path: root/keyboards/z12/keymaps/zigotica/encoder.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-12-27 10:25:01 +0000
committerQMK Bot <hello@qmk.fm>2021-12-27 10:25:01 +0000
commit0709d208dbf0aa1ea39b7fa3a6938e2b3d5b5249 (patch)
treeea26b77c4e432166094206d8a4827e268156573a /keyboards/z12/keymaps/zigotica/encoder.c
parentbe2265d0d173ac347f0ee9ed809c2a689bf835a2 (diff)
parent07465c0ebbabf35079fed70a58e73da1e9419444 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/z12/keymaps/zigotica/encoder.c')
-rw-r--r--keyboards/z12/keymaps/zigotica/encoder.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/keyboards/z12/keymaps/zigotica/encoder.c b/keyboards/z12/keymaps/zigotica/encoder.c
index 49a3d859b6..f55b9b5ae9 100644
--- a/keyboards/z12/keymaps/zigotica/encoder.c
+++ b/keyboards/z12/keymaps/zigotica/encoder.c
@@ -48,12 +48,8 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
// Cycle through Tabs
if (clockwise) {
tap_code16(C(KC_TAB));
- /* register_code16(G(KC_RCBR)); */
- /* unregister_code16(G(KC_RCBR)); */
} else {
tap_code16(S(C(KC_TAB)));
- /* register_code16(G(KC_LCBR)); */
- /* unregister_code16(G(KC_LCBR)); */
}
} else { // RIGHT
// Scroll up/down
@@ -68,11 +64,11 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
break;
case _FIGMA:
if (index == 0) { // LEFT
- // Volume control.
+ // Cycle through Tabs
if (clockwise) {
- tap_code(KC_VOLU);
+ tap_code16(C(KC_TAB));
} else {
- tap_code(KC_VOLD);
+ tap_code16(S(C(KC_TAB)));
}
} else { // RIGHT
// Zoom in/out
@@ -89,7 +85,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
}
}
break;
- case _TERMINAL:
+ case _BASE:
default:
if (index == 0) { // LEFT
// Volume control.