#include #include #include #include <3ds.h> #define width 400 #define height 240 #define screenSize width * height * 2 #define bufSize screenSize * 2 int main(int argc, char* argv[]) { gfxInitDefault(); consoleInit(GFX_TOP, NULL); printf("Hello, world!\n"); // Main loop while (aptMainLoop()) { gspWaitForVBlank(); gfxSwapBuffers(); hidScanInput(); // Your code goes here u32 kDown = hidKeysDown(); if (kDown & KEY_START) break; // break in order to return to hbmenu } gfxExit(); return 0; }