Support more buttons

This commit is contained in:
Jaby
2024-01-04 20:58:46 -06:00
committed by Jaby
parent 5db699a620
commit 755362c032
4 changed files with 21 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ namespace Menu {
this->waiting = false;
}
bool BackMenu :: update(const GPU::PositionI16& position) {
bool BackMenu :: update(const GPU::PositionI16& position, bool auto_clear) {
const auto& controller = Periphery::get_primary_controller_as<JabyEngine::Periphery::GenericController>();
if(controller.button.is_down(DigitalButton::Circle)) {
@@ -66,7 +66,7 @@ namespace Menu {
this->font_writer->write(state, "Press and hold ()\nto get back", GPU::Color24::Red(0xD0));
}
else {
else if(auto_clear) {
this->font_writer->clear();
}
return false;