summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Didron <fdidron@users.noreply.github.com>2019-07-30 10:11:09 +0900
committerDrashna Jaelre <drashna@live.com>2019-07-29 18:11:09 -0700
commit4a5b36ec4c07cd5f84e3c76745646af9e3e14a42 (patch)
treec4a5b389168208abda4f4ef94ed305a59e87671c
parent6d6506e6eecdbb5aca16ae4e305442ffe69d76b2 (diff)
Fix/music mask (#123)
* chore: align mod tap and mouse keys timings with the ergodox ez * fix: align planck ez default tapping toggle with ergodox * fix: ignore all layer keys in music mode
-rw-r--r--keyboards/planck/ez/config.h1
-rw-r--r--keyboards/planck/ez/ez.c16
2 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/planck/ez/config.h b/keyboards/planck/ez/config.h
index 59385eb16b..4bde8ce259 100644
--- a/keyboards/planck/ez/config.h
+++ b/keyboards/planck/ez/config.h
@@ -140,6 +140,7 @@
#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
+
#define RGB_MATRIX_LED_PROCESS_LIMIT 5
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c
index a6995533c9..6e250d4d76 100644
--- a/keyboards/planck/ez/ez.c
+++ b/keyboards/planck/ez/ez.c
@@ -150,3 +150,19 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
}
return state;
}
+
+#ifdef AUDIO_ENABLE
+bool music_mask_kb(uint16_t keycode) {
+ switch (keycode) {
+ case QK_LAYER_TAP ... QK_ONE_SHOT_LAYER_MAX:
+ case QK_LAYER_TAP_TOGGLE ... QK_LAYER_MOD_MAX:
+ case QK_MOD_TAP ... QK_MOD_TAP_MAX:
+ case AU_ON ... MUV_DE:
+ case RESET:
+ case EEP_RST:
+ return false;
+ default:
+ return music_mask_user(keycode);
+ }
+}
+#endif