@@ -42,13 +42,19 @@ enum class sprite : std::size_t {
|
||||
MAIN_MENU,
|
||||
PERFORMANCE,
|
||||
SETTINGS,
|
||||
PLAYBACK,
|
||||
BACKING,
|
||||
METRONOME,
|
||||
TEMPO,
|
||||
BACK,
|
||||
ON,
|
||||
OFF,
|
||||
BPM,
|
||||
MANUAL,
|
||||
PREPARING,
|
||||
COUNT_IN,
|
||||
PLAYING,
|
||||
SUSTAIN,
|
||||
HOLD_TO_EXIT,
|
||||
DIGIT_0,
|
||||
DIGIT_1,
|
||||
DIGIT_2,
|
||||
|
||||
@@ -20,7 +20,10 @@ struct remote_display_state {
|
||||
std::char_t part[48]{};
|
||||
std::char_t mode[24]{};
|
||||
std::char_t focus[32]{};
|
||||
std::bool_t playback{};
|
||||
std::bool_t backing{};
|
||||
std::bool_t backing_available{true};
|
||||
std::bool_t error{};
|
||||
std::array<std::char_t, 16> phase{};
|
||||
std::bool_t metronome{};
|
||||
std::bool_t editing{};
|
||||
std::uint32_t bpm{120U};
|
||||
@@ -28,7 +31,7 @@ struct remote_display_state {
|
||||
std::uint32_t page{};
|
||||
std::uint32_t pages{};
|
||||
auto operator==(remote_display_state const &other) const -> std::bool_t {
|
||||
return active == other.active && std::string_view{title} == other.title && std::string_view{part} == other.part && std::string_view{mode} == other.mode && std::string_view{focus} == other.focus && playback == other.playback && metronome == other.metronome && editing == other.editing && bpm == other.bpm && title_image == other.title_image && page == other.page && pages == other.pages;
|
||||
return backing_available == other.backing_available && error == other.error && phase == other.phase && active == other.active && std::string_view{title} == other.title && std::string_view{part} == other.part && std::string_view{mode} == other.mode && std::string_view{focus} == other.focus && backing == other.backing && metronome == other.metronome && editing == other.editing && bpm == other.bpm && title_image == other.title_image && page == other.page && pages == other.pages;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user