Removed unused layers (left QWERTY for later use/reference)

example_keyboards
Stephen Christie 8 years ago
parent 723857bf8a
commit fb2a7d787a

@ -17,18 +17,12 @@ extern keymap_config_t keymap_config;
#define _ALPHA 0 #define _ALPHA 0
#define _FN 1 #define _FN 1
#define _QWERTY 3 #define _QWERTY 2
#define _COLEMAK 4 #define _PLOVER 3
#define _DVORAK 5 #define _ADJUST 4
#define _LOWER 6
#define _RAISE 7
#define _PLOVER 8
#define _ADJUST 16
enum planck_keycodes { enum planck_keycodes {
QWERTY = SAFE_RANGE, QWERTY = SAFE_RANGE,
COLEMAK,
DVORAK,
PLOVER, PLOVER,
LOWER, LOWER,
RAISE, RAISE,
@ -242,44 +236,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
return false; return false;
break; break;
case COLEMAK:
if (record->event.pressed) {
#ifdef AUDIO_ENABLE
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
#endif
persistant_default_layer_set(1UL<<_COLEMAK);
}
return false;
break;
case DVORAK:
if (record->event.pressed) {
#ifdef AUDIO_ENABLE
PLAY_NOTE_ARRAY(tone_dvorak, false, 0);
#endif
persistant_default_layer_set(1UL<<_DVORAK);
}
return false;
break;
case LOWER:
if (record->event.pressed) {
layer_on(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
layer_off(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case RAISE:
if (record->event.pressed) {
layer_on(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
layer_off(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case BACKLIT: case BACKLIT:
if (record->event.pressed) { if (record->event.pressed) {
register_code(KC_RSFT); register_code(KC_RSFT);

Loading…
Cancel
Save