diff options
author | Jack Humbert <jack.humb@gmail.com> | 2018-05-08 17:18:15 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-05-08 17:18:15 -0400 |
commit | 63d5c947d3bce7ad9db014b7930e4809aa16fa4c (patch) | |
tree | 29f2f97b93cf652dcc40742b8b84ae9f78fad900 /keyboards/planck/keymaps/default | |
parent | 14b7602a65dedaf51db1c9288144765d43a83a15 (diff) |
updated music mask
Diffstat (limited to 'keyboards/planck/keymaps/default')
-rw-r--r-- | keyboards/planck/keymaps/default/config.h | 6 | ||||
-rw-r--r-- | keyboards/planck/keymaps/default/keymap.c | 10 |
2 files changed, 12 insertions, 4 deletions
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; + } +} |