mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
Improve prompts A LOT.
This commit is contained in:
+18
-6
@@ -89,11 +89,17 @@ bool Msg::promptMsg(const std::string &promptMsg) {
|
|||||||
for (int i = 0; i < 3; i++) gspWaitForVBlank();
|
for (int i = 0; i < 3; i++) gspWaitForVBlank();
|
||||||
hidScanInput();
|
hidScanInput();
|
||||||
|
|
||||||
|
uint32_t Down = 0;
|
||||||
while(1) {
|
while(1) {
|
||||||
hidScanInput();
|
do {
|
||||||
if (hidKeysDown() & KEY_A) return true;
|
gspWaitForVBlank();
|
||||||
else if (hidKeysDown() & KEY_B) return false;
|
hidScanInput();
|
||||||
}
|
Down = hidKeysDown();
|
||||||
|
} while (!Down);
|
||||||
|
|
||||||
|
if (Down & KEY_A) return true;
|
||||||
|
else if (Down & KEY_B) return false;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -120,8 +126,14 @@ void Msg::waitMsg(const std::string &msg) {
|
|||||||
for (int i = 0; i < 3; i++) gspWaitForVBlank();
|
for (int i = 0; i < 3; i++) gspWaitForVBlank();
|
||||||
hidScanInput();
|
hidScanInput();
|
||||||
|
|
||||||
|
uint32_t Down = 0;
|
||||||
while(!doOut) {
|
while(!doOut) {
|
||||||
hidScanInput();
|
do {
|
||||||
if (hidKeysDown()) doOut = !doOut;
|
gspWaitForVBlank();
|
||||||
|
hidScanInput();
|
||||||
|
Down = hidKeysDown();
|
||||||
|
} while (!Down);
|
||||||
|
|
||||||
|
doOut = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user