diff options
Diffstat (limited to 'keyboards/palette1202/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/palette1202/keymaps/default/keymap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/keyboards/palette1202/keymaps/default/keymap.c b/keyboards/palette1202/keymaps/default/keymap.c index d7bd120ed..b55b39a40 100644 --- a/keyboards/palette1202/keymaps/default/keymap.c +++ b/keyboards/palette1202/keymaps/default/keymap.c | |||
@@ -107,7 +107,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
107 | ), | 107 | ), |
108 | }; | 108 | }; |
109 | 109 | ||
110 | void encoder_update_user(uint8_t index, bool clockwise) { | 110 | bool encoder_update_user(uint8_t index, bool clockwise) { |
111 | uint8_t currentDefault = get_highest_layer(default_layer_state); | 111 | uint8_t currentDefault = get_highest_layer(default_layer_state); |
112 | uint8_t currentLayer = get_highest_layer(layer_state); | 112 | uint8_t currentLayer = get_highest_layer(layer_state); |
113 | if (index == 0) { /* the upper encoder */ | 113 | if (index == 0) { /* the upper encoder */ |
@@ -159,7 +159,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
159 | case IOS_CS_1: | 159 | case IOS_CS_1: |
160 | if (currentLayer % 2 == 0) { | 160 | if (currentLayer % 2 == 0) { |
161 | // default layer | 161 | // default layer |
162 | // Zoom | 162 | // Zoom |
163 | tap_code16(!clockwise ? G(KC_MINS) : G(KC_SCLN)); | 163 | tap_code16(!clockwise ? G(KC_MINS) : G(KC_SCLN)); |
164 | } else { | 164 | } else { |
165 | // Fn Layer | 165 | // Fn Layer |
@@ -170,7 +170,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
170 | default: | 170 | default: |
171 | break; | 171 | break; |
172 | } | 172 | } |
173 | } else if (index == 1) { /* the lower encoder */ | 173 | } else if (index == 1) { /* the lower encoder */ |
174 | switch (currentDefault) { | 174 | switch (currentDefault) { |
175 | case MAC_CS_1: | 175 | case MAC_CS_1: |
176 | if (currentLayer % 2 == 0) { | 176 | if (currentLayer % 2 == 0) { |
@@ -231,6 +231,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
231 | break; | 231 | break; |
232 | } | 232 | } |
233 | } | 233 | } |
234 | return true; | ||
234 | } | 235 | } |
235 | 236 | ||
236 | // custom keycode | 237 | // custom keycode |