summaryrefslogtreecommitdiffstats
path: root/keyboards/wilba_tech/wt_main.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-05-25 09:52:37 +0000
committerQMK Bot <hello@qmk.fm>2021-05-25 09:52:37 +0000
commitcc815c4d830eb1ec8f1098b2f19fdfa99073a954 (patch)
treeca491362a16d848f44b673a0bde90d8aa70a326f /keyboards/wilba_tech/wt_main.c
parent5cecfe8c9bf899bd486106db579977c4516a0ad8 (diff)
parent0211e3003280a52e5f0ce262cfe347aeb68be722 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/wilba_tech/wt_main.c')
-rw-r--r--keyboards/wilba_tech/wt_main.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/keyboards/wilba_tech/wt_main.c b/keyboards/wilba_tech/wt_main.c
index 32721b654e..d5e136e06b 100644
--- a/keyboards/wilba_tech/wt_main.c
+++ b/keyboards/wilba_tech/wt_main.c
@@ -89,6 +89,29 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record)
process_record_backlight(keycode, record);
#endif // RGB_BACKLIGHT_ENABLED || MONO_BACKLIGHT_ENABLED
+ switch (keycode) {
+ case FN_MO13:
+ if (record->event.pressed) {
+ layer_on(1);
+ update_tri_layer(1, 2, 3);
+ } else {
+ layer_off(1);
+ update_tri_layer(1, 2, 3);
+ }
+ return false;
+ break;
+ case FN_MO23:
+ if (record->event.pressed) {
+ layer_on(2);
+ update_tri_layer(1, 2, 3);
+ } else {
+ layer_off(2);
+ update_tri_layer(1, 2, 3);
+ }
+ return false;
+ break;
+ }
+
return process_record_user(keycode, record);
}