GRRLIB/examples/template/source/main.c

33 lines
652 B
C
Raw Normal View History

2009-02-13 00:23:20 +00:00
/*===========================================
GRRLIB (GX Version)
- Template Code -
2009-02-13 00:23:20 +00:00
Minimum Code To Use GRRLIB
============================================*/
2009-02-13 20:44:54 +00:00
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
2009-02-13 00:23:20 +00:00
#include <stdlib.h>
#include <wiiuse/wpad.h>
int main() {
u32 WPADDown;
2009-02-13 00:23:20 +00:00
GRRLIB_Init();
WPAD_Init();
while(1) {
WPAD_ScanPads();
WPADDown = WPAD_ButtonsDown(0);
2009-02-13 00:23:20 +00:00
GRRLIB_Render();
if(WPADDown & WPAD_BUTTON_HOME) {
2009-02-13 00:23:20 +00:00
exit(0);
}
}
GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB
return 0;
}