diff options
Diffstat (limited to 'keyboards/rgbkb/sol')
-rw-r--r-- | keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/rgbkb/sol/keymaps/default/keymap.c | 5 | ||||
-rw-r--r-- | keyboards/rgbkb/sol/keymaps/kageurufu/keymap.c | 3 | ||||
-rw-r--r-- | keyboards/rgbkb/sol/keymaps/xyverz/keymap.c | 7 |
5 files changed, 13 insertions, 8 deletions
diff --git a/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c b/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c index 7f7863fdb..2ae07984d 100644 --- a/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/brianweyer/keymap.c | |||
@@ -131,7 +131,7 @@ bool TOG_STATUS = false; | |||
131 | int RGB_current_mode; | 131 | int RGB_current_mode; |
132 | 132 | ||
133 | #ifdef ENCODER_ENABLE | 133 | #ifdef ENCODER_ENABLE |
134 | void encoder_update_user(uint8_t index, bool clockwise) { | 134 | bool encoder_update_user(uint8_t index, bool clockwise) { |
135 | if (index == 0) { /* First encoder */ | 135 | if (index == 0) { /* First encoder */ |
136 | if (clockwise) { | 136 | if (clockwise) { |
137 | tap_code(KC_VOLU); | 137 | tap_code(KC_VOLU); |
@@ -145,6 +145,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
145 | tap_code(KC_DOWN); | 145 | tap_code(KC_DOWN); |
146 | } | 146 | } |
147 | } | 147 | } |
148 | return true; | ||
148 | } | 149 | } |
149 | #endif | 150 | #endif |
150 | 151 | ||
diff --git a/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c b/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c index 860361e81..96e19bf86 100644 --- a/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/danielhklein/keymap.c | |||
@@ -164,7 +164,7 @@ bool TOG_STATUS = false; | |||
164 | int RGB_current_mode; | 164 | int RGB_current_mode; |
165 | 165 | ||
166 | #ifdef ENCODER_ENABLE | 166 | #ifdef ENCODER_ENABLE |
167 | void encoder_update_user(uint8_t index, bool clockwise) { | 167 | bool encoder_update_user(uint8_t index, bool clockwise) { |
168 | if (index == 0) { /* First encoder */ | 168 | if (index == 0) { /* First encoder */ |
169 | if (clockwise) { | 169 | if (clockwise) { |
170 | tap_code(KC_VOLU); | 170 | tap_code(KC_VOLU); |
@@ -178,6 +178,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
178 | tap_code(KC_VOLD); | 178 | tap_code(KC_VOLD); |
179 | } | 179 | } |
180 | } | 180 | } |
181 | return true; | ||
181 | } | 182 | } |
182 | #endif | 183 | #endif |
183 | 184 | ||
diff --git a/keyboards/rgbkb/sol/keymaps/default/keymap.c b/keyboards/rgbkb/sol/keymaps/default/keymap.c index 04af5165e..0883cb775 100644 --- a/keyboards/rgbkb/sol/keymaps/default/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/default/keymap.c | |||
@@ -223,9 +223,9 @@ const uint16_t PROGMEM encoders[][NUMBER_OF_ENCODERS * 2][2] = { | |||
223 | ) | 223 | ) |
224 | }; | 224 | }; |
225 | 225 | ||
226 | void encoder_update_user(uint8_t index, bool clockwise) { | 226 | bool encoder_update_user(uint8_t index, bool clockwise) { |
227 | if (!is_keyboard_master()) | 227 | if (!is_keyboard_master()) |
228 | return; | 228 | return true; |
229 | 229 | ||
230 | #ifdef RGB_OLED_MENU | 230 | #ifdef RGB_OLED_MENU |
231 | if (index == RGB_OLED_MENU) { | 231 | if (index == RGB_OLED_MENU) { |
@@ -244,6 +244,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
244 | if (keycode != KC_TRANSPARENT) | 244 | if (keycode != KC_TRANSPARENT) |
245 | tap_code16(keycode); | 245 | tap_code16(keycode); |
246 | } | 246 | } |
247 | return true; | ||
247 | } | 248 | } |
248 | #endif | 249 | #endif |
249 | 250 | ||
diff --git a/keyboards/rgbkb/sol/keymaps/kageurufu/keymap.c b/keyboards/rgbkb/sol/keymaps/kageurufu/keymap.c index b587ef2b3..1c8320ac6 100644 --- a/keyboards/rgbkb/sol/keymaps/kageurufu/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/kageurufu/keymap.c | |||
@@ -79,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
79 | }; | 79 | }; |
80 | 80 | ||
81 | #ifdef ENCODER_ENABLE | 81 | #ifdef ENCODER_ENABLE |
82 | void encoder_update_user(uint8_t index, bool clockwise) { | 82 | bool encoder_update_user(uint8_t index, bool clockwise) { |
83 | if (index == 0) { /* First encoder */ | 83 | if (index == 0) { /* First encoder */ |
84 | if (clockwise) { | 84 | if (clockwise) { |
85 | tap_code(KC_VOLU); | 85 | tap_code(KC_VOLU); |
@@ -93,5 +93,6 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
93 | tap_code(KC_VOLD); | 93 | tap_code(KC_VOLD); |
94 | } | 94 | } |
95 | } | 95 | } |
96 | return true; | ||
96 | } | 97 | } |
97 | #endif | 98 | #endif |
diff --git a/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c b/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c index e38663dbb..ed98a951c 100644 --- a/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c +++ b/keyboards/rgbkb/sol/keymaps/xyverz/keymap.c | |||
@@ -59,7 +59,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
59 | KC_BSPC, KC_DEL, KC_ENT, KC_SPC \ | 59 | KC_BSPC, KC_DEL, KC_ENT, KC_SPC \ |
60 | 60 | ||
61 | ), | 61 | ), |
62 | 62 | ||
63 | [_QWERTY] = LAYOUT( \ | 63 | [_QWERTY] = LAYOUT( \ |
64 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_HOME, KC_PGUP, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, \ | 64 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_HOME, KC_PGUP, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, \ |
65 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_END, KC_PGDN, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLSH, \ | 65 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_END, KC_PGDN, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLSH, \ |
@@ -253,7 +253,7 @@ const uint16_t PROGMEM encoders[][NUMBER_OF_ENCODERS * 2][2] = { | |||
253 | ) | 253 | ) |
254 | }; | 254 | }; |
255 | 255 | ||
256 | void encoder_update_user(uint8_t index, bool clockwise) { | 256 | bool encoder_update_user(uint8_t index, bool clockwise) { |
257 | if (!is_keyboard_master()) | 257 | if (!is_keyboard_master()) |
258 | return; | 258 | return; |
259 | 259 | ||
@@ -274,6 +274,7 @@ void encoder_update_user(uint8_t index, bool clockwise) { | |||
274 | if (keycode != KC_TRANSPARENT) | 274 | if (keycode != KC_TRANSPARENT) |
275 | tap_code16(keycode); | 275 | tap_code16(keycode); |
276 | } | 276 | } |
277 | return true; | ||
277 | } | 278 | } |
278 | #endif | 279 | #endif |
279 | 280 | ||
@@ -358,4 +359,4 @@ void oled_task_user(void) { | |||
358 | } | 359 | } |
359 | } | 360 | } |
360 | 361 | ||
361 | #endif \ No newline at end of file | 362 | #endif |