Normalise MIDI keycodes (#18972)
* `MI_ON`, `MI_OFF`, `MI_TOG` -> `MI_TOGG` * `MI_CH*`, `MI_CHU` -> `MI_CHNU`, `MI_CHD` -> `MI_CHND` * `MI_VEL_*` -> `MI_VL*`, `MI_VELU`, `MI_VELD` * `MI_TRNS_*` -> `MI_TR*`, `MI_TRNSU` -> `MI_TRSU`, `MI_TRNSD` -> `MI_TRSD` * `MI_OCT_*` -> `MI_OC*`, `MI_OCTU`, `MI_OCTD` * Misc controls * Note keycodes * Add legacy keycodes * Regenerate keycodes * Typo
This commit is contained in:
parent
442e7653cc
commit
8b658dcc9a
39 changed files with 1799 additions and 1154 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue