summaryrefslogtreecommitdiffstats
path: root/quantum/process_keycode/process_music.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-11-28 07:54:00 +1100
committerNick Brassel <nick@tzarc.org>2022-11-28 07:54:00 +1100
commit4020674163fc80914059c4c9c3be5c0ae00bd150 (patch)
tree6f4187d72b04d03572adf507502afbda9726d696 /quantum/process_keycode/process_music.c
parent8f9b49dc5b05fd3421e47aa76822a5b2199dfca6 (diff)
parent9e78e65a566487b2f4fe7b663971a01deb6ddad2 (diff)
Merge remote-tracking branch 'upstream/develop'
Diffstat (limited to 'quantum/process_keycode/process_music.c')
-rw-r--r--quantum/process_keycode/process_music.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/quantum/process_keycode/process_music.c b/quantum/process_keycode/process_music.c
index eeec0c28a4..ee697a0cc6 100644
--- a/quantum/process_keycode/process_music.c
+++ b/quantum/process_keycode/process_music.c
@@ -101,17 +101,17 @@ void music_all_notes_off(void) {
}
bool process_music(uint16_t keycode, keyrecord_t *record) {
- if (keycode == MU_ON && record->event.pressed) {
+ if (keycode == QK_MUSIC_ON && record->event.pressed) {
music_on();
return false;
}
- if (keycode == MU_OFF && record->event.pressed) {
+ if (keycode == QK_MUSIC_OFF && record->event.pressed) {
music_off();
return false;
}
- if (keycode == MU_TOG && record->event.pressed) {
+ if (keycode == QK_MUSIC_TOGGLE && record->event.pressed) {
if (music_activated) {
music_off();
} else {
@@ -120,17 +120,17 @@ bool process_music(uint16_t keycode, keyrecord_t *record) {
return false;
}
- if (keycode == MI_ON && record->event.pressed) {
+ if (keycode == QK_MIDI_ON && record->event.pressed) {
midi_on();
return false;
}
- if (keycode == MI_OFF && record->event.pressed) {
+ if (keycode == QK_MIDI_OFF && record->event.pressed) {
midi_off();
return false;
}
- if (keycode == MI_TOG && record->event.pressed) {
+ if (keycode == QK_MIDI_TOGGLE && record->event.pressed) {
if (midi_activated) {
midi_off();
} else {
@@ -139,7 +139,7 @@ bool process_music(uint16_t keycode, keyrecord_t *record) {
return false;
}
- if (keycode == MU_MOD && record->event.pressed) {
+ if (keycode == QK_MUSIC_MODE_NEXT && record->event.pressed) {
music_mode_cycle();
return false;
}