#include <3ds.h> #include 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(); }