3ds_tests/source/main.cpp
2024-09-25 23:09:49 +02:00

37 lines
936 B
C++

#include <3ds.h>
#include <iostream>
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();
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
for (int i = 50; aptMainLoop(); i--) {
cout << i << endl;
while (aptMainLoop()) {
hidScanInput();
if (hidKeysDownRepeat() & KEY_A)
break;
gfxFlushBuffers();
}
gfxFlushBuffers();
}
while (aptMainLoop()) {
gfxFlushBuffers();
}
gfxExit();
}