Exit UU with START, switch START actions to SELECT

This commit is contained in:
Pk11
2022-02-21 03:16:14 -06:00
committed by Dark98
parent 6c16faeca7
commit c91372f66b
8 changed files with 34 additions and 8 deletions
+6 -2
View File
@@ -34,7 +34,7 @@ static const Structs::ButtonPos btn = { 45, 215, 24, 24 };
static const Structs::ButtonPos sshot = { 75, 215, 24, 24 };
static const Structs::ButtonPos notes = { 105, 215, 24, 24 };
extern bool checkWifiStatus();
extern bool QueueRuns;
extern bool exiting, QueueRuns;
/*
Draw the Entry Info part.
@@ -78,7 +78,7 @@ void StoreUtils::DrawEntryInfo(const std::unique_ptr<StoreEntry> &entry) {
*/
void StoreUtils::EntryHandle(bool &showMark, bool &fetch, bool &sFetch, int &mode, const std::unique_ptr<StoreEntry> &entry) {
if (entry) {
if ((hDown & KEY_START) || (hDown & KEY_TOUCH && touching(touch, btn))) showMark = true;
if ((hDown & KEY_SELECT) || (hDown & KEY_TOUCH && touching(touch, btn))) showMark = true;
if ((hDown & KEY_Y) || (hDown & KEY_TOUCH && touching(touch, sshot))) {
if (!entry->GetScreenshots().empty()) {
@@ -100,4 +100,8 @@ void StoreUtils::EntryHandle(bool &showMark, bool &fetch, bool &sFetch, int &mod
if (entry->GetReleaseNotes() != "") mode = 7;
}
}
/* Quit UU. */
if (hDown & KEY_START && !QueueRuns)
exiting = true;
}