|
|
@ -225,7 +225,7 @@ float tone_colemak[][2] = SONG(COLEMAK_SOUND);
|
|
|
|
float goodbye[][2] = SONG(GOODBYE_SOUND);
|
|
|
|
float goodbye[][2] = SONG(GOODBYE_SOUND);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
void persistant_default_layer_set(uint16_t default_layer) {
|
|
|
|
void persistent_default_layer_set(uint16_t default_layer) {
|
|
|
|
eeconfig_update_default_layer(default_layer);
|
|
|
|
eeconfig_update_default_layer(default_layer);
|
|
|
|
default_layer_set(default_layer);
|
|
|
|
default_layer_set(default_layer);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -238,7 +238,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
PLAY_NOTE_ARRAY(tone_qwerty, false, 0);
|
|
|
|
PLAY_NOTE_ARRAY(tone_qwerty, false, 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_QWERTY);
|
|
|
|
persistent_default_layer_set(1UL<<_QWERTY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _COLEMAK:
|
|
|
|
case _COLEMAK:
|
|
|
@ -246,7 +246,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
|
|
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_COLEMAK);
|
|
|
|
persistent_default_layer_set(1UL<<_COLEMAK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _DVORAK:
|
|
|
|
case _DVORAK:
|
|
|
@ -254,7 +254,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
PLAY_NOTE_ARRAY(tone_dvorak, false, 0);
|
|
|
|
PLAY_NOTE_ARRAY(tone_dvorak, false, 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_DVORAK);
|
|
|
|
persistent_default_layer_set(1UL<<_DVORAK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _GAME:
|
|
|
|
case _GAME:
|
|
|
@ -262,7 +262,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
|
|
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_GAME);
|
|
|
|
persistent_default_layer_set(1UL<<_GAME);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _NUMPAD:
|
|
|
|
case _NUMPAD:
|
|
|
@ -270,7 +270,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
PLAY_NOTE_ARRAY(tone_dvorak, false, 0);
|
|
|
|
PLAY_NOTE_ARRAY(tone_dvorak, false, 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_NUMPAD);
|
|
|
|
persistent_default_layer_set(1UL<<_NUMPAD);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _ARROW:
|
|
|
|
case _ARROW:
|
|
|
@ -278,7 +278,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
|
|
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_LOWER);
|
|
|
|
persistent_default_layer_set(1UL<<_LOWER);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case _LOWER:
|
|
|
|
case _LOWER:
|
|
|
|