diff options
Diffstat (limited to 'keyboards/kinesis/keymaps/insertsnideremarks/keymap.c')
-rw-r--r-- | keyboards/kinesis/keymaps/insertsnideremarks/keymap.c | 22 |
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 |