s
This commit is contained in:
parent
38b8fa6c79
commit
82cca59ddd
90 changed files with 18056 additions and 28 deletions
|
|
@ -3,35 +3,19 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
// RESULTS
|
||||
// Top screen has 50 cols
|
||||
// Bottom screen has 40 cols
|
||||
// Bith screens have 29 lines
|
||||
|
||||
int main(void) {
|
||||
// gfxInitDefault();
|
||||
// consoleInit(GFX_TOP, NULL);
|
||||
// cout << "012345678901234567890123456789012345678901234567890123456789" << endl;
|
||||
// consoleInit(GFX_BOTTOM, NULL);
|
||||
// cout << "012345678901234567890123456789012345678901234567890123456789" << endl;
|
||||
// while (aptMainLoop()) {
|
||||
// gfxFlushBuffers();
|
||||
// }
|
||||
// gfxExit();
|
||||
int main(void) {;
|
||||
gfxInitDefault();
|
||||
consoleInit(GFX_TOP, NULL);
|
||||
for (int i = 50; aptMainLoop(); i--) {
|
||||
cout << i << endl;
|
||||
while (aptMainLoop()) {
|
||||
hidScanInput();
|
||||
if (hidKeysDownRepeat() & KEY_A)
|
||||
break;
|
||||
gfxFlushBuffers();
|
||||
}
|
||||
gfxFlushBuffers();
|
||||
}
|
||||
bool value = false;
|
||||
while (aptMainLoop()) {
|
||||
gfxFlushBuffers();
|
||||
hidScanInput();
|
||||
if (hidKeysDown() & KEY_A)
|
||||
value = !value;
|
||||
|
||||
gspWaitForVBlank();
|
||||
GSPGPU_SetLedForceOff(value);
|
||||
gfxFlushBuffers();
|
||||
gfxSwapBuffers();
|
||||
}
|
||||
gfxExit();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue