Support more buttons
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user