summaryrefslogtreecommitdiff
path: root/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
diff options
context:
space:
mode:
authorSalt-Peanuts <hajimeokuda@gmail.com>2018-04-27 18:16:13 -0400
committerDrashna Jaelre <drashna@live.com>2018-04-27 15:16:13 -0700
commit34ce1ed016eeac130a05765a6753d62692055bae (patch)
treee7c6fcd8bf55b23bb526916f834954d4c34583e3 /keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
parent17223166ce11cc3f5492735679dda2846c27ded6 (diff)
Updated tri-layer block in keymap file. (#2827)
* Updated info and fixed minor errors * Updated folder name; overdue updates to keymap and readme files Updated folder name; overdue updates to keymap and readme files * Updated tri-layer feature * Revert "Updated tri-layer feature" This reverts commit 59b8b85761740e24f671e10fceea869f06a33ade. * Updated tri-layer on keymap * Fixed typos
Diffstat (limited to 'keyboards/kinesis/keymaps/insertsnideremarks/keymap.c')
-rw-r--r--keyboards/kinesis/keymaps/insertsnideremarks/keymap.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c b/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
index 8885867ee8..999e76ca3f 100644
--- a/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
+++ b/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
@@ -571,6 +571,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
+uint32_t layer_state_set_user(uint32_t state) {
+ return update_tri_layer_state(state, _NUMBERS, _NUMBERS2, _ADJUST);
+}
+
void persistent_default_layer_set(uint16_t default_layer) {
eeconfig_update_default_layer(default_layer);
default_layer_set(default_layer);
@@ -658,24 +662,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
break;
- case ENTNS:
- if (record->event.pressed) {
- layer_on(_NUMBERS);
- update_tri_layer(_NUMBERS, _NUMBERS2, _ADJUST);
- } else {
- layer_off(_NUMBERS);
- update_tri_layer(_NUMBERS, _NUMBERS2, _ADJUST);
- }
- break;
- case DELNS:
- if (record->event.pressed) {
- layer_on(_NUMBERS2);
- update_tri_layer(_NUMBERS, _NUMBERS2, _ADJUST);
- } else {
- layer_off(_NUMBERS2);
- update_tri_layer(_NUMBERS, _NUMBERS2, _ADJUST);
- }
- break;
}
return true;
} \ No newline at end of file