diff options
Diffstat (limited to 'keyboards/planck/keymaps/ishtob/keymap.c')
| -rw-r--r-- | keyboards/planck/keymaps/ishtob/keymap.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/keyboards/planck/keymaps/ishtob/keymap.c b/keyboards/planck/keymaps/ishtob/keymap.c index e036d8a5a..aeb36b368 100644 --- a/keyboards/planck/keymaps/ishtob/keymap.c +++ b/keyboards/planck/keymaps/ishtob/keymap.c | |||
| @@ -198,10 +198,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 198 | 198 | ||
| 199 | }; | 199 | }; |
| 200 | 200 | ||
| 201 | const uint16_t PROGMEM fn_actions[] = { | ||
| 202 | ACTION_SWAP_HANDS_TAP_KEY(KC_SPC), | ||
| 203 | }; | ||
| 204 | |||
| 205 | #ifdef AUDIO_ENABLE | 201 | #ifdef AUDIO_ENABLE |
| 206 | 202 | ||
| 207 | float tone_startup[][2] = SONG(STARTUP_SOUND); | 203 | float tone_startup[][2] = SONG(STARTUP_SOUND); |
| @@ -230,7 +226,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 230 | case QWERTY: | 226 | case QWERTY: |
| 231 | if (record->event.pressed) { | 227 | if (record->event.pressed) { |
| 232 | #ifdef AUDIO_ENABLE | 228 | #ifdef AUDIO_ENABLE |
| 233 | PLAY_NOTE_ARRAY(tone_qwerty, false, 0); | 229 | PLAY_SONG(tone_qwerty); |
| 234 | #endif | 230 | #endif |
| 235 | persistant_default_layer_set(1UL<<_QWERTY); | 231 | persistant_default_layer_set(1UL<<_QWERTY); |
| 236 | } | 232 | } |
| @@ -239,7 +235,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 239 | case COLEMAK: | 235 | case COLEMAK: |
| 240 | if (record->event.pressed) { | 236 | if (record->event.pressed) { |
| 241 | #ifdef AUDIO_ENABLE | 237 | #ifdef AUDIO_ENABLE |
| 242 | PLAY_NOTE_ARRAY(tone_colemak, false, 0); | 238 | PLAY_SONG(tone_colemak); |
| 243 | #endif | 239 | #endif |
| 244 | persistant_default_layer_set(1UL<<_COLEMAK); | 240 | persistant_default_layer_set(1UL<<_COLEMAK); |
| 245 | } | 241 | } |
| @@ -248,7 +244,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 248 | case DVORAK: | 244 | case DVORAK: |
| 249 | if (record->event.pressed) { | 245 | if (record->event.pressed) { |
| 250 | #ifdef AUDIO_ENABLE | 246 | #ifdef AUDIO_ENABLE |
| 251 | PLAY_NOTE_ARRAY(tone_dvorak, false, 0); | 247 | PLAY_SONG(tone_dvorak); |
| 252 | #endif | 248 | #endif |
| 253 | persistant_default_layer_set(1UL<<_DVORAK); | 249 | persistant_default_layer_set(1UL<<_DVORAK); |
| 254 | } | 250 | } |
| @@ -289,7 +285,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 289 | if (record->event.pressed) { | 285 | if (record->event.pressed) { |
| 290 | #ifdef AUDIO_ENABLE | 286 | #ifdef AUDIO_ENABLE |
| 291 | stop_all_notes(); | 287 | stop_all_notes(); |
| 292 | PLAY_NOTE_ARRAY(tone_plover, false, 0); | 288 | PLAY_SONG(tone_plover); |
| 293 | #endif | 289 | #endif |
| 294 | layer_off(_RAISE); | 290 | layer_off(_RAISE); |
| 295 | layer_off(_LOWER); | 291 | layer_off(_LOWER); |
| @@ -307,7 +303,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | |||
| 307 | case EXT_PLV: | 303 | case EXT_PLV: |
| 308 | if (record->event.pressed) { | 304 | if (record->event.pressed) { |
| 309 | #ifdef AUDIO_ENABLE | 305 | #ifdef AUDIO_ENABLE |
| 310 | PLAY_NOTE_ARRAY(tone_plover_gb, false, 0); | 306 | PLAY_SONG(tone_plover_gb); |
| 311 | #endif | 307 | #endif |
| 312 | layer_off(_PLOVER); | 308 | layer_off(_PLOVER); |
| 313 | } | 309 | } |
| @@ -331,12 +327,12 @@ void startup_user() | |||
| 331 | rgblight_mode(RGB_MATRIX_CYCLE_ALL); | 327 | rgblight_mode(RGB_MATRIX_CYCLE_ALL); |
| 332 | #endif //RGB_matrix | 328 | #endif //RGB_matrix |
| 333 | wait_ms(20); // gets rid of tick | 329 | wait_ms(20); // gets rid of tick |
| 334 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | 330 | PLAY_SONG(tone_startup); |
| 335 | } | 331 | } |
| 336 | 332 | ||
| 337 | void shutdown_user() | 333 | void shutdown_user() |
| 338 | { | 334 | { |
| 339 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | 335 | PLAY_SONG(tone_goodbye); |
| 340 | wait_ms(150); | 336 | wait_ms(150); |
| 341 | stop_all_notes(); | 337 | stop_all_notes(); |
| 342 | } | 338 | } |
| @@ -348,7 +344,7 @@ void music_on_user(void) | |||
| 348 | 344 | ||
| 349 | void music_scale_user(void) | 345 | void music_scale_user(void) |
| 350 | { | 346 | { |
| 351 | PLAY_NOTE_ARRAY(music_scale, false, 0); | 347 | PLAY_SONG(music_scale); |
| 352 | } | 348 | } |
| 353 | 349 | ||
| 354 | #endif | 350 | #endif |
