blob: c176f4bf6a5be28185b50864b027a596bd0a57cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "nes/app/ui/screen.hh"
namespace nes::app
{
class input_device_keyboard;
/// A popup asking the user if they really want to quit the game.
class screen_confirm_quit final : public screen
{
input_device_keyboard& keyboard_;
bool confirm_{ false };
public:
explicit screen_confirm_quit(input_device_keyboard&);
auto get_confirm() const -> bool { return confirm_; }
auto set_confirm(bool const v) -> void { confirm_ = v; }
auto render(renderer&) -> void override;
auto process_events() -> action override;
};
} // namespace nes::app
|