This example shows the minimum code required to use GRRLIB.It could be used as a template to start a new project. More elaborate examples can be found inside the examples folder.
#include <stdlib.h>
#include <wiiuse/wpad.h>
int main(int argc, char **argv) {
WPAD_Init();
while(1) {
WPAD_ScanPads();
if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break;
}
exit(0);
}
void GRRLIB_Exit(void)
Call this before exiting your application.
Definition: GRRLIB_core.c:223
void GRRLIB_Render(void)
Call this function after drawing.
Definition: GRRLIB_render.c:407
int GRRLIB_Init(void)
Initialize GRRLIB.
Definition: GRRLIB_core.c:53
GRRLIB user include file.