mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-17 06:02:19 -04:00
Add screen capture button.
This commit is contained in:
parent
7cf55cef52
commit
40d7f3a134
2 changed files with 40 additions and 0 deletions
|
@ -42,6 +42,7 @@ SystemStatusView::SystemStatusView() {
|
|||
add_children({ {
|
||||
&button_back,
|
||||
&title,
|
||||
&button_camera,
|
||||
&button_sleep,
|
||||
&sd_card_status_view,
|
||||
} });
|
||||
|
@ -52,6 +53,10 @@ SystemStatusView::SystemStatusView() {
|
|||
}
|
||||
};
|
||||
|
||||
button_camera.on_select = [this](ImageButton&) {
|
||||
this->on_camera();
|
||||
};
|
||||
|
||||
button_sleep.on_select = [this](ImageButton&) {
|
||||
DisplaySleepMessage message;
|
||||
EventDispatcher::message_map().send(&message);
|
||||
|
@ -71,6 +76,9 @@ void SystemStatusView::set_title(const std::string new_value) {
|
|||
}
|
||||
}
|
||||
|
||||
void SystemStatusView::on_camera() {
|
||||
}
|
||||
|
||||
/* Navigation ************************************************************/
|
||||
|
||||
bool NavigationView::is_top() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue