Skip to content

Commit

Permalink
feat: reorganise display mode transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyHaystack committed Mar 11, 2024
1 parent 1797bea commit 7cf8f23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HAL/pico/src/display/ConfigMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ ConfigMenu::ConfigMenu(Config &config, CommunicationBackend **backends, size_t b
},
},
{
.text = "Return",
.text = "Input Viewer",
.action = [](
IntegratedDisplay *display_backend,
ConfigMenu *menu,
Expand Down Expand Up @@ -227,7 +227,7 @@ void ConfigMenu::HandleControls(
if (_backends[0] != nullptr) {
_backends[0]->SetGameMode(instance->CurrentGameMode());
}
instance->SetDisplayMode(DISPLAY_MODE_VIEWER);
instance->SetDisplayMode(DISPLAY_MODE_BUTTON_HINTS);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion HAL/pico/src/display/InputDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void InputDisplay::HandleControls(
const DisplayControls &controls,
Button button
) {
if (button == controls.enter) {
if (button == controls.back) {
instance->SetDisplayMode(DISPLAY_MODE_CONFIG);
}
}
Expand Down

0 comments on commit 7cf8f23

Please sign in to comment.