|
|
@ -197,8 +197,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_QWERTY);
|
|
|
|
persistant_default_layer_set(1UL<<_QWERTY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COLEMAK:
|
|
|
|
case COLEMAK:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
@ -206,8 +206,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_COLEMAK);
|
|
|
|
persistant_default_layer_set(1UL<<_COLEMAK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case DVORAK:
|
|
|
|
case DVORAK:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
@ -215,8 +215,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
persistant_default_layer_set(1UL<<_DVORAK);
|
|
|
|
persistant_default_layer_set(1UL<<_DVORAK);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case LOWER:
|
|
|
|
case LOWER:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
layer_on(_LOWER);
|
|
|
|
layer_on(_LOWER);
|
|
|
@ -225,8 +225,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
layer_off(_LOWER);
|
|
|
|
layer_off(_LOWER);
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case RAISE:
|
|
|
|
case RAISE:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
layer_on(_RAISE);
|
|
|
|
layer_on(_RAISE);
|
|
|
@ -235,8 +235,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
layer_off(_RAISE);
|
|
|
|
layer_off(_RAISE);
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case BACKLIT:
|
|
|
|
case BACKLIT:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
register_code(KC_RSFT);
|
|
|
|
register_code(KC_RSFT);
|
|
|
@ -246,8 +246,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
unregister_code(KC_RSFT);
|
|
|
|
unregister_code(KC_RSFT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case PLOVER:
|
|
|
|
case PLOVER:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
@ -265,8 +265,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
keymap_config.nkro = 1;
|
|
|
|
keymap_config.nkro = 1;
|
|
|
|
eeconfig_update_keymap(keymap_config.raw);
|
|
|
|
eeconfig_update_keymap(keymap_config.raw);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case EXT_PLV:
|
|
|
|
case EXT_PLV:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
|
#ifdef AUDIO_ENABLE
|
|
|
@ -274,8 +274,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
layer_off(_PLOVER);
|
|
|
|
layer_off(_PLOVER);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|