#include <stdio.h>
int main(int argc, char **argv)
{
printf("This text is in the left window!\n");
printf("3DS rocks!!!\n");
printf("This text is in the right window!\n");
printf("This thing works pretty well!\n");
printf("\x1b[30;16HPress Start to exit.");
{
}
return 0;
}
bool aptMainLoop(void)
Main function which handles sleep mode and HOME/power buttons - call this at the beginning of every f...
void consoleSetWindow(PrintConsole *console, int x, int y, int width, int height)
Sets the print window.
PrintConsole * consoleInit(gfxScreen_t screen, PrintConsole *console)
Initialise the console.
PrintConsole * consoleSelect(PrintConsole *console)
Make the specified console the render target.
void gfxSwapBuffers(void)
Updates the configuration of both screens.
void gfxInitDefault(void)
Initializes the LCD framebuffers with default parameters This is equivalent to calling:
@ GFX_TOP
Top screen.
Definition: gfx.h:26
void gfxExit(void)
Deinitializes and frees the LCD framebuffers.
void gfxFlushBuffers(void)
Flushes the data cache for the current framebuffers.
#define gspWaitForVBlank()
Waits for VBlank.
Definition: gspgpu.h:151
@ KEY_START
Start.
Definition: hid.h:15
u32 hidKeysDown(void)
Returns a bitmask of newly pressed buttons, this frame.
void hidScanInput(void)
Scans HID for input data.
Console structure used to store the state of a console render context.
Definition: console.h:77
uint32_t u32
32-bit unsigned integer
Definition: types.h:23