GRRLIB/examples/template/source/main.c

30 lines
621 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
============================================*/
#include <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-07-18 17:50:31 +00:00
break;
2009-02-13 00:23:20 +00:00
}
}
GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB
return 0;
}