Skip to content

Commit

Permalink
PAGE_SELECT, common GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
jmamma committed Oct 22, 2024
1 parent 286093e commit 94db780
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 47 deletions.
10 changes: 0 additions & 10 deletions avr/cores/megacommand/MCL/FXPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,5 @@ bool FXPage::handleEvent(gui_event_t *event) {
return true;
}

if (EVENT_PRESSED(event, Buttons.BUTTON3)) {
}

if (EVENT_PRESSED(event, Buttons.BUTTON4)) {
}
if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}

return false;
}
4 changes: 0 additions & 4 deletions avr/cores/megacommand/MCL/GridPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1190,10 +1190,6 @@ bool GridPage::handleEvent(gui_event_t *event) {
mcl.pushPage(SYSTEM_PAGE);
return true;
}
if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}

return false;
}
6 changes: 6 additions & 0 deletions avr/cores/megacommand/MCL/MCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ bool mcl_handleEvent(gui_event_t *event) {
}
}
}

if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}

return false;
}

Expand Down
6 changes: 0 additions & 6 deletions avr/cores/megacommand/MCL/MixerPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,12 +824,6 @@ bool MixerPage::handleEvent(gui_event_t *event) {
return true;
}


if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}

if (preview_mute_set != 255 && (trig_interface.is_key_down(MDX_KEY_NO))) {
if (event->source >= Buttons.ENCODER1 &&
event->source <= Buttons.ENCODER4) {
Expand Down
5 changes: 0 additions & 5 deletions avr/cores/megacommand/MCL/PerfPageParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,5 @@ bool PerfPageParent::handleEvent(gui_event_t *event) {
}
}
*/
if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}

return false;
}
5 changes: 0 additions & 5 deletions avr/cores/megacommand/MCL/RAMPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,11 +753,6 @@ bool RAMPage::handleEvent(gui_event_t *event) {
}
}

if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}

return false;
}

Expand Down
4 changes: 0 additions & 4 deletions avr/cores/megacommand/MCL/RoutePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ bool RoutePage::handleEvent(gui_event_t *event) {
// mcl.setPage(MIXER_PAGE);
// return true;
//}
if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}
/*
if (EVENT_PRESSED(event, Buttons.ENCODER1) ||
EVENT_PRESSED(event, Buttons.ENCODER2) ||
Expand Down
5 changes: 0 additions & 5 deletions avr/cores/megacommand/MCL/SampleBrowserPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ bool SampleBrowserPage::handleEvent(gui_event_t *event) {
return true;
}

if (EVENT_PRESSED(event, Buttons.BUTTON1)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}

return FileBrowserPage::handleEvent(event);
}

Expand Down
4 changes: 0 additions & 4 deletions avr/cores/megacommand/MCL/SeqPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,6 @@ bool SeqPage::handleEvent(gui_event_t *event) {
return true;
}

if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
}

if (EVENT_PRESSED(event, Buttons.BUTTON3)) {
// If MD trig is held and BUTTON3 is pressed, launch note menu
if (!show_seq_menu) {
Expand Down
4 changes: 0 additions & 4 deletions avr/cores/megacommand/MCL/WavDesignerPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ bool WavDesignerPage::handleEvent(gui_event_t *event) {
}
return true;
}
if (EVENT_PRESSED(event, Buttons.BUTTON2)) {
mcl.setPage(PAGE_SELECT_PAGE);
return true;
}
return false;
}

Expand Down

0 comments on commit 94db780

Please sign in to comment.