summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXyverz <xyverz@gmail.com>2016-08-15 06:28:39 -0700
committerXyverz <xyverz@gmail.com>2016-08-15 06:28:39 -0700
commit8e2d69d5a27adfb3ec1e288e8099a408ac72bc84 (patch)
tree88b06838d2a986813fb434fc4465d92ecb50692a
parent4f0bcfe724125f72cbbf42306cc9a89c6c51c9f0 (diff)
Adding u/treasuredfrog's hack to use LT() with the RAISE and LOWER macros.
-rw-r--r--keyboards/planck/keymaps/xyverz/keymap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/planck/keymaps/xyverz/keymap.c b/keyboards/planck/keymaps/xyverz/keymap.c
index 90529428da..6d10083fee 100644
--- a/keyboards/planck/keymaps/xyverz/keymap.c
+++ b/keyboards/planck/keymaps/xyverz/keymap.c
@@ -27,8 +27,8 @@ enum planck_keycodes {
COLEMAK,
DVORAK,
PLOVER,
- LOWER,
- RAISE,
+ LOWER = LT(_LOWER, KC_BSPC),
+ RAISE = LT(_RAISE, KC_ENT),
BACKLIT,
EXT_PLV
};
@@ -89,7 +89,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_DVORAK] = {
{KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH},
{KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS},
- {KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, SFT_T(KC_ENT)},
+ {KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT},
{KC_LCTL, KC_LALT, KC_LEFT, KC_RGHT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_UP, KC_DOWN, KC_RGUI, KC_ENT }
},
@@ -225,7 +225,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
layer_off(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
- return false;
+ //return false;
break;
case RAISE:
if (record->event.pressed) {
@@ -235,7 +235,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
layer_off(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
- return false;
+ //return false;
break;
case BACKLIT:
if (record->event.pressed) {
@@ -311,4 +311,4 @@ void music_scale_user(void)
PLAY_NOTE_ARRAY(music_scale, false, 0);
}
-#endif \ No newline at end of file
+#endif