summaryrefslogtreecommitdiffstats
path: root/keyboards/wilba_tech/wt_main.c
diff options
context:
space:
mode:
authorWilba <Jason.S.Williams@gmail.com>2021-05-25 19:51:52 +1000
committerGitHub <noreply@github.com>2021-05-25 19:51:52 +1000
commit0211e3003280a52e5f0ce262cfe347aeb68be722 (patch)
tree5e0db8c5c13081083f6625c8b569c3d770d02344 /keyboards/wilba_tech/wt_main.c
parentaa97f52963f3da6aa112093d357296e62bfa5452 (diff)
Added RAMA WORKS M50-AX (#12458)
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);
}