From 34ce1ed016eeac130a05765a6753d62692055bae Mon Sep 17 00:00:00 2001 From: Salt-Peanuts Date: Fri, 27 Apr 2018 18:16:13 -0400 Subject: 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 --- .../kinesis/keymaps/insertsnideremarks/keymap.c | 22 ++++------------------ .../kinesis/keymaps/insertsnideremarks/readme.md | 4 ++-- 2 files changed, 6 insertions(+), 20 deletions(-) (limited to 'keyboards') 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 diff --git a/keyboards/kinesis/keymaps/insertsnideremarks/readme.md b/keyboards/kinesis/keymaps/insertsnideremarks/readme.md index 1920d4f9b8..b3c573b625 100644 --- a/keyboards/kinesis/keymaps/insertsnideremarks/readme.md +++ b/keyboards/kinesis/keymaps/insertsnideremarks/readme.md @@ -10,9 +10,9 @@ Changes to the thumb clusters include: * Backspace have been duplicated on both clusters. * The 2u keys serve dual function as momentary layer switchers. -I've largely left the function keys untouched, with the intension of not using them. They are neither easy to use nor reach due to their locations and size, and, prior to Advantage2, particularly terrible rubber domes were used for them. They have since updated the keys with Cherry ML switches on Advantage2, but did not resolve the issues of size or location. Additionally, leaving the function keys unused here makes it easier for me to adapt the keymaps to my other keyboards, most of which do not have physical function keys. +I've largely left the function keys untouched, with the intension of not using them. They are neither easy to use nor reach due to their locations and size, and, prior to Advantage2, particularly terrible rubber domes were used. They have since updated the keys with Cherry ML switches on Advantage2, but did not resolve the issues of size or location. Additionally, leaving the function keys unused here makes it easier for me to adapt the keymaps to my other keyboards, most of which do not have physical function keys. -I use Colemak Mod-DH Matrix as my default layout. There QWERTY and Colemak layouts as well. +I use Colemak Mod-DH Matrix as my default layout. There are QWERTY and regular Colemak layouts as well. Additionally, I've added gaming/vanilla version of Colemak Mod-DH Matrix and QWERTY layouts. These layouts have no access to the Function or Numbers layers, thus no dual-role keys with layer access, and are mainly used for gaming. -- cgit v1.2.3