diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/community/ortho_4x12/bocaj/keymap.c | 3 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/brandonschlack/keymap.c | 3 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/buswerks/keymap.c | 5 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/drashna/keymap.c | 3 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/jackhumbert/keymap.c | 3 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/juno/keymap.c | 35 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/junonum/keymap.c | 3 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/mguterl/keymap.c | 3 | ||||
-rw-r--r-- | layouts/community/ortho_4x12/mindsound/keymap.c | 3 | ||||
-rw-r--r-- | layouts/community/ortho_5x12/brandonschlack/keymap.c | 3 |
10 files changed, 36 insertions, 28 deletions
diff --git a/layouts/community/ortho_4x12/bocaj/keymap.c b/layouts/community/ortho_4x12/bocaj/keymap.c index 89d4d1d9a..6adbb6d61 100644 --- a/layouts/community/ortho_4x12/bocaj/keymap.c +++ b/layouts/community/ortho_4x12/bocaj/keymap.c | |||
@@ -237,7 +237,7 @@ void rgb_matrix_indicators_user(void) { | |||
237 | void matrix_init_keymap(void) {} | 237 | void matrix_init_keymap(void) {} |
238 | 238 | ||
239 | #ifdef ENCODER_ENABLE | 239 | #ifdef ENCODER_ENABLE |
240 | void encoder_update(bool clockwise) { | 240 | bool encoder_update_user(uint8_t index, bool clockwise) { |
241 | switch (get_highest_layer(layer_state)) { | 241 | switch (get_highest_layer(layer_state)) { |
242 | case _RAISE: | 242 | case _RAISE: |
243 | clockwise ? tap_code(KC_VOLD) : tap_code(KC_VOLU); | 243 | clockwise ? tap_code(KC_VOLD) : tap_code(KC_VOLU); |
@@ -260,6 +260,7 @@ void encoder_update(bool clockwise) { | |||
260 | # ifdef AUDIO_CLICKY | 260 | # ifdef AUDIO_CLICKY |
261 | clicky_play(); | 261 | clicky_play(); |
262 | # endif | 262 | # endif |
263 | return true; | ||
263 | } | 264 | } |
264 | #endif // ENCODER_ENABLE | 265 | #endif // ENCODER_ENABLE |
265 | 266 | ||
diff --git a/layouts/community/ortho_4x12/brandonschlack/keymap.c b/layouts/community/ortho_4x12/brandonschlack/keymap.c index d4c1a4a86..ea9d29506 100644 --- a/layouts/community/ortho_4x12/brandonschlack/keymap.c +++ b/layouts/community/ortho_4x12/brandonschlack/keymap.c | |||
@@ -121,7 +121,7 @@ uint16_t muse_counter = 0; | |||
121 | uint8_t muse_offset = 70; | 121 | uint8_t muse_offset = 70; |
122 | uint16_t muse_tempo = 50; | 122 | uint16_t muse_tempo = 50; |
123 | 123 | ||
124 | void encoder_update_keymap(uint8_t index, bool clockwise) { | 124 | bool encoder_update_keymap(uint8_t index, bool clockwise) { |
125 | if (muse_mode) { | 125 | if (muse_mode) { |
126 | if (IS_LAYER_ON(_RAISE)) { | 126 | if (IS_LAYER_ON(_RAISE)) { |
127 | if (clockwise) { | 127 | if (clockwise) { |
@@ -151,6 +151,7 @@ void encoder_update_keymap(uint8_t index, bool clockwise) { | |||
151 | #endif | 151 | #endif |
152 | } | 152 | } |
153 | } | 153 | } |
154 | return true; | ||
154 | } | 155 | } |
155 | 156 | ||
156 | void dip_switch_update_user(uint8_t index, bool active) { | 157 | void dip_switch_update_user(uint8_t index, bool active) { |
diff --git a/layouts/community/ortho_4x12/buswerks/keymap.c b/layouts/community/ortho_4x12/buswerks/keymap.c index 95d9e7019..455db2a8a 100644 --- a/layouts/community/ortho_4x12/buswerks/keymap.c +++ b/layouts/community/ortho_4x12/buswerks/keymap.c | |||
@@ -142,7 +142,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
142 | return true; | 142 | return true; |
143 | } | 143 | } |
144 | 144 | ||
145 | void encoder_update(bool clockwise) { | 145 | bool encoder_update_user(uint8_t index, bool clockwise) { |
146 | if (IS_LAYER_ON(_RAISE) || IS_LAYER_ON(_LOWER)) { | 146 | if (IS_LAYER_ON(_RAISE) || IS_LAYER_ON(_LOWER)) { |
147 | if (clockwise) { | 147 | if (clockwise) { |
148 | register_code(KC_VOLU); | 148 | register_code(KC_VOLU); |
@@ -170,6 +170,5 @@ void encoder_update(bool clockwise) { | |||
170 | #endif | 170 | #endif |
171 | } | 171 | } |
172 | } | 172 | } |
173 | return true; | ||
173 | } | 174 | } |
174 | |||
175 | |||
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c index 61f22dfe9..1f3176e36 100644 --- a/layouts/community/ortho_4x12/drashna/keymap.c +++ b/layouts/community/ortho_4x12/drashna/keymap.c | |||
@@ -348,7 +348,7 @@ void matrix_init_keymap(void) { | |||
348 | #endif // RGB_MATRIX_INIT | 348 | #endif // RGB_MATRIX_INIT |
349 | 349 | ||
350 | #ifdef ENCODER_ENABLE | 350 | #ifdef ENCODER_ENABLE |
351 | void encoder_update(bool clockwise) { | 351 | bool encoder_update_user(uint8_t index, bool clockwise) { |
352 | switch (get_highest_layer(layer_state)) { | 352 | switch (get_highest_layer(layer_state)) { |
353 | case _RAISE: | 353 | case _RAISE: |
354 | clockwise ? tap_code(KC_VOLD) : tap_code(KC_VOLU); | 354 | clockwise ? tap_code(KC_VOLD) : tap_code(KC_VOLU); |
@@ -371,6 +371,7 @@ void encoder_update(bool clockwise) { | |||
371 | # ifdef AUDIO_CLICKY | 371 | # ifdef AUDIO_CLICKY |
372 | clicky_play(); | 372 | clicky_play(); |
373 | # endif | 373 | # endif |
374 | return true; | ||
374 | } | 375 | } |
375 | #endif // ENCODER_ENABLE | 376 | #endif // ENCODER_ENABLE |
376 | 377 | ||
diff --git a/layouts/community/ortho_4x12/jackhumbert/keymap.c b/layouts/community/ortho_4x12/jackhumbert/keymap.c index f9a3e1686..08abf78d1 100644 --- a/layouts/community/ortho_4x12/jackhumbert/keymap.c +++ b/layouts/community/ortho_4x12/jackhumbert/keymap.c | |||
@@ -130,7 +130,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
130 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | 130 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); |
131 | }; | 131 | }; |
132 | 132 | ||
133 | void encoder_update(bool clockwise) { | 133 | bool encoder_update_user(uint8_t index, bool clockwise) { |
134 | if (clockwise) { | 134 | if (clockwise) { |
135 | #ifdef MOUSEKEY_ENABLE | 135 | #ifdef MOUSEKEY_ENABLE |
136 | tap_code(KC_MS_WH_DOWN); | 136 | tap_code(KC_MS_WH_DOWN); |
@@ -144,6 +144,7 @@ void encoder_update(bool clockwise) { | |||
144 | tap_code(KC_PGUP); | 144 | tap_code(KC_PGUP); |
145 | #endif | 145 | #endif |
146 | } | 146 | } |
147 | return true; | ||
147 | } | 148 | } |
148 | 149 | ||
149 | bool music_mask_user(uint16_t keycode) { | 150 | bool music_mask_user(uint16_t keycode) { |
diff --git a/layouts/community/ortho_4x12/juno/keymap.c b/layouts/community/ortho_4x12/juno/keymap.c index 2b16b9955..b3ef8fce5 100644 --- a/layouts/community/ortho_4x12/juno/keymap.c +++ b/layouts/community/ortho_4x12/juno/keymap.c | |||
@@ -10,7 +10,7 @@ enum planck_layers { | |||
10 | _RAISE, | 10 | _RAISE, |
11 | _PLOVER, | 11 | _PLOVER, |
12 | _ADJUST, | 12 | _ADJUST, |
13 | 13 | ||
14 | _FN1, | 14 | _FN1, |
15 | _DPAD, | 15 | _DPAD, |
16 | _DPADNUM | 16 | _DPADNUM |
@@ -23,7 +23,7 @@ enum planck_keycodes { | |||
23 | PLOVER, | 23 | PLOVER, |
24 | BACKLIT, | 24 | BACKLIT, |
25 | EXT_PLV, | 25 | EXT_PLV, |
26 | 26 | ||
27 | DP_ON, | 27 | DP_ON, |
28 | DP_OFF | 28 | DP_OFF |
29 | }; | 29 | }; |
@@ -49,7 +49,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
49 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | 49 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, |
50 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | 50 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, |
51 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT), | 51 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT), |
52 | KC_APP, KC_LCTL, KC_LGUI, KC_LALT, LOWER, SPACEFN, SPACEFN, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT | 52 | KC_APP, KC_LCTL, KC_LGUI, KC_LALT, LOWER, SPACEFN, SPACEFN, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT |
53 | ), | 53 | ), |
54 | 54 | ||
55 | /* Colemak | 55 | /* Colemak |
@@ -218,10 +218,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
218 | #ifdef AUDIO_ENABLE | 218 | #ifdef AUDIO_ENABLE |
219 | float plover_song[][2] = SONG(PLOVER_SOUND); | 219 | float plover_song[][2] = SONG(PLOVER_SOUND); |
220 | float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND); | 220 | float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND); |
221 | 221 | ||
222 | // Borrowing audio from unused audio | 222 | // Borrowing audio from unused audio |
223 | // Caps Lock on and off sound too similar | 223 | // Caps Lock on and off sound too similar |
224 | 224 | ||
225 | float caps_song_on[][2] = SONG(NUM_LOCK_ON_SOUND); | 225 | float caps_song_on[][2] = SONG(NUM_LOCK_ON_SOUND); |
226 | float caps_song_off[][2] = SONG(SCROLL_LOCK_ON_SOUND); | 226 | float caps_song_off[][2] = SONG(SCROLL_LOCK_ON_SOUND); |
227 | 227 | ||
@@ -236,7 +236,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
236 | } | 236 | } |
237 | 237 | ||
238 | #else | 238 | #else |
239 | 239 | ||
240 | layer_state_t layer_state_set_user(layer_state_t state) { | 240 | layer_state_t layer_state_set_user(layer_state_t state) { |
241 | // LED control, lighting up when Fn layer is activated | 241 | // LED control, lighting up when Fn layer is activated |
242 | state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | 242 | state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); |
@@ -256,7 +256,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
256 | return state; | 256 | return state; |
257 | } | 257 | } |
258 | 258 | ||
259 | #endif | 259 | #endif |
260 | 260 | ||
261 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 261 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
262 | switch (keycode) { | 262 | switch (keycode) { |
@@ -324,8 +324,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
324 | } | 324 | } |
325 | return false; | 325 | return false; |
326 | break; | 326 | break; |
327 | 327 | ||
328 | 328 | ||
329 | // Play audio upon switching Caps Lock and custom layers | 329 | // Play audio upon switching Caps Lock and custom layers |
330 | 330 | ||
331 | case KC_CAPS: | 331 | case KC_CAPS: |
@@ -339,26 +339,26 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
339 | #endif | 339 | #endif |
340 | } | 340 | } |
341 | return true; | 341 | return true; |
342 | 342 | ||
343 | case DP_ON: | 343 | case DP_ON: |
344 | if (record->event.pressed) { | 344 | if (record->event.pressed) { |
345 | 345 | ||
346 | } else { | 346 | } else { |
347 | #ifdef AUDIO_ENABLE | 347 | #ifdef AUDIO_ENABLE |
348 | PLAY_SONG(dpad_song_on); | 348 | PLAY_SONG(dpad_song_on); |
349 | #endif | 349 | #endif |
350 | 350 | ||
351 | layer_off(_FN1); | 351 | layer_off(_FN1); |
352 | layer_on(_DPAD); | 352 | layer_on(_DPAD); |
353 | } | 353 | } |
354 | 354 | ||
355 | case DP_OFF: | 355 | case DP_OFF: |
356 | if (record->event.pressed) { | 356 | if (record->event.pressed) { |
357 | #ifdef AUDIO_ENABLE | 357 | #ifdef AUDIO_ENABLE |
358 | PLAY_SONG(dpad_song_off); | 358 | PLAY_SONG(dpad_song_off); |
359 | #endif | 359 | #endif |
360 | 360 | ||
361 | layer_off(_DPAD); | 361 | layer_off(_DPAD); |
362 | } | 362 | } |
363 | } | 363 | } |
364 | return true; | 364 | return true; |
@@ -370,7 +370,7 @@ uint16_t muse_counter = 0; | |||
370 | uint8_t muse_offset = 70; | 370 | uint8_t muse_offset = 70; |
371 | uint16_t muse_tempo = 50; | 371 | uint16_t muse_tempo = 50; |
372 | 372 | ||
373 | void encoder_update(bool clockwise) { | 373 | bool encoder_update_user(uint8_t index, bool clockwise) { |
374 | if (muse_mode) { | 374 | if (muse_mode) { |
375 | if (IS_LAYER_ON(_RAISE)) { | 375 | if (IS_LAYER_ON(_RAISE)) { |
376 | if (clockwise) { | 376 | if (clockwise) { |
@@ -392,6 +392,7 @@ void encoder_update(bool clockwise) { | |||
392 | tap_code(KC_PGUP); | 392 | tap_code(KC_PGUP); |
393 | } | 393 | } |
394 | } | 394 | } |
395 | return true; | ||
395 | } | 396 | } |
396 | 397 | ||
397 | void dip_update(uint8_t index, bool active) { | 398 | void dip_update(uint8_t index, bool active) { |
diff --git a/layouts/community/ortho_4x12/junonum/keymap.c b/layouts/community/ortho_4x12/junonum/keymap.c index 67f7efde4..82ff4d63a 100644 --- a/layouts/community/ortho_4x12/junonum/keymap.c +++ b/layouts/community/ortho_4x12/junonum/keymap.c | |||
@@ -268,7 +268,7 @@ uint16_t muse_counter = 0; | |||
268 | uint8_t muse_offset = 70; | 268 | uint8_t muse_offset = 70; |
269 | uint16_t muse_tempo = 50; | 269 | uint16_t muse_tempo = 50; |
270 | 270 | ||
271 | void encoder_update(bool clockwise) { | 271 | bool encoder_update_user(uint8_t index, bool clockwise) { |
272 | if (muse_mode) { | 272 | if (muse_mode) { |
273 | if (IS_LAYER_ON(_RAISE)) { | 273 | if (IS_LAYER_ON(_RAISE)) { |
274 | if (clockwise) { | 274 | if (clockwise) { |
@@ -290,6 +290,7 @@ void encoder_update(bool clockwise) { | |||
290 | tap_code(KC_PGUP); | 290 | tap_code(KC_PGUP); |
291 | } | 291 | } |
292 | } | 292 | } |
293 | return true; | ||
293 | } | 294 | } |
294 | 295 | ||
295 | void dip_update(uint8_t index, bool active) { | 296 | void dip_update(uint8_t index, bool active) { |
diff --git a/layouts/community/ortho_4x12/mguterl/keymap.c b/layouts/community/ortho_4x12/mguterl/keymap.c index 2be2d449e..66039b61e 100644 --- a/layouts/community/ortho_4x12/mguterl/keymap.c +++ b/layouts/community/ortho_4x12/mguterl/keymap.c | |||
@@ -257,7 +257,7 @@ uint16_t muse_counter = 0; | |||
257 | uint8_t muse_offset = 70; | 257 | uint8_t muse_offset = 70; |
258 | uint16_t muse_tempo = 50; | 258 | uint16_t muse_tempo = 50; |
259 | 259 | ||
260 | void encoder_update(bool clockwise) { | 260 | bool encoder_update_user(uint8_t index, bool clockwise) { |
261 | if (muse_mode) { | 261 | if (muse_mode) { |
262 | if (IS_LAYER_ON(_RAISE)) { | 262 | if (IS_LAYER_ON(_RAISE)) { |
263 | if (clockwise) { | 263 | if (clockwise) { |
@@ -287,6 +287,7 @@ void encoder_update(bool clockwise) { | |||
287 | #endif | 287 | #endif |
288 | } | 288 | } |
289 | } | 289 | } |
290 | return true; | ||
290 | } | 291 | } |
291 | 292 | ||
292 | void dip_switch_update_user(uint8_t index, bool active) { | 293 | void dip_switch_update_user(uint8_t index, bool active) { |
diff --git a/layouts/community/ortho_4x12/mindsound/keymap.c b/layouts/community/ortho_4x12/mindsound/keymap.c index 613f11d13..336545502 100644 --- a/layouts/community/ortho_4x12/mindsound/keymap.c +++ b/layouts/community/ortho_4x12/mindsound/keymap.c | |||
@@ -185,7 +185,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
185 | return true; | 185 | return true; |
186 | } | 186 | } |
187 | 187 | ||
188 | void encoder_update(bool clockwise) { | 188 | bool encoder_update_user(uint8_t index, bool clockwise) { |
189 | if (clockwise) { | 189 | if (clockwise) { |
190 | register_code(KC_VOLU); | 190 | register_code(KC_VOLU); |
191 | unregister_code(KC_VOLU); | 191 | unregister_code(KC_VOLU); |
@@ -193,6 +193,7 @@ void encoder_update(bool clockwise) { | |||
193 | register_code(KC_VOLD); | 193 | register_code(KC_VOLD); |
194 | unregister_code(KC_VOLD); | 194 | unregister_code(KC_VOLD); |
195 | } | 195 | } |
196 | return true; | ||
196 | } | 197 | } |
197 | 198 | ||
198 | // flicker implementation: | 199 | // flicker implementation: |
diff --git a/layouts/community/ortho_5x12/brandonschlack/keymap.c b/layouts/community/ortho_5x12/brandonschlack/keymap.c index 4d7b7483a..c9c94fc96 100644 --- a/layouts/community/ortho_5x12/brandonschlack/keymap.c +++ b/layouts/community/ortho_5x12/brandonschlack/keymap.c | |||
@@ -116,7 +116,7 @@ uint16_t muse_counter = 0; | |||
116 | uint8_t muse_offset = 70; | 116 | uint8_t muse_offset = 70; |
117 | uint16_t muse_tempo = 50; | 117 | uint16_t muse_tempo = 50; |
118 | 118 | ||
119 | void encoder_update_keymap(uint8_t index, bool clockwise) { | 119 | bool encoder_update_keymap(uint8_t index, bool clockwise) { |
120 | if (muse_mode) { | 120 | if (muse_mode) { |
121 | if (IS_LAYER_ON(_RAISE)) { | 121 | if (IS_LAYER_ON(_RAISE)) { |
122 | if (clockwise) { | 122 | if (clockwise) { |
@@ -146,6 +146,7 @@ void encoder_update_keymap(uint8_t index, bool clockwise) { | |||
146 | #endif | 146 | #endif |
147 | } | 147 | } |
148 | } | 148 | } |
149 | return true; | ||
149 | } | 150 | } |
150 | 151 | ||
151 | void dip_switch_update_user(uint8_t index, bool active) { | 152 | void dip_switch_update_user(uint8_t index, bool active) { |