|| controller->pressed(Controller::MENU_SELECT)) {
menuaction = MENU_ACTION_HIT;
}
- if(controller->pressed(Controller::PAUSE_MENU)
- || controller->pressed(Controller::MENU_BACK)) {
+ if(controller->pressed(Controller::ESCAPE) ||
+ controller->pressed(Controller::START) ||
+ controller->pressed(Controller::MENU_BACK)) {
menuaction = MENU_ACTION_BACK;
}
}
}
- throw std::runtime_error("MenuItem not found");
+ throw std::runtime_error("MenuItem not found: " + std::to_string(id));
}
const MenuItem&