From 63d5c947d3bce7ad9db014b7930e4809aa16fa4c Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Tue, 8 May 2018 17:18:15 -0400 Subject: updated music mask --- keyboards/planck/keymaps/default/config.h | 6 ++---- keyboards/planck/keymaps/default/keymap.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'keyboards/planck') diff --git a/keyboards/planck/keymaps/default/config.h b/keyboards/planck/keymaps/default/config.h index a1635f2bab..7f38058a73 100644 --- a/keyboards/planck/keymaps/default/config.h +++ b/keyboards/planck/keymaps/default/config.h @@ -13,8 +13,6 @@ } #endif -#define MUSIC_MASK (keycode != KC_NO) - /* * MIDI options */ @@ -25,7 +23,7 @@ /* enable basic MIDI features: - MIDI notes can be sent when in Music mode is on */ - + #define MIDI_BASIC /* enable advanced MIDI features: @@ -39,4 +37,4 @@ /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ //#define MIDI_TONE_KEYCODE_OCTAVES 2 -#endif \ No newline at end of file +#endif diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c index b13557eee2..105d8c464e 100644 --- a/keyboards/planck/keymaps/default/keymap.c +++ b/keyboards/planck/keymaps/default/keymap.c @@ -247,3 +247,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } return true; } + +bool music_mask_user(uint16_t keycode) { + switch (keycode) { + case RAISE: + case LOWER: + return false; + default: + return true; + } +} -- cgit v1.2.3