2009-02-13 00:23:20 +00:00
|
|
|
/*===========================================
|
2009-03-11 17:23:41 +00:00
|
|
|
GRRLIB (GX Version)
|
|
|
|
- Template Code -
|
2009-02-13 00:23:20 +00:00
|
|
|
|
|
|
|
Minimum Code To Use GRRLIB
|
|
|
|
============================================*/
|
2009-08-20 22:05:44 +00:00
|
|
|
#include <grrlib.h>
|
2009-02-13 00:23:20 +00:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <wiiuse/wpad.h>
|
|
|
|
|
|
|
|
int main() {
|
2009-03-11 17:23:41 +00:00
|
|
|
u32 WPADDown;
|
2009-02-13 00:23:20 +00:00
|
|
|
|
|
|
|
GRRLIB_Init();
|
|
|
|
WPAD_Init();
|
|
|
|
|
|
|
|
while(1) {
|
|
|
|
WPAD_ScanPads();
|
2009-03-11 17:23:41 +00:00
|
|
|
WPADDown = WPAD_ButtonsDown(0);
|
2009-02-13 00:23:20 +00:00
|
|
|
|
|
|
|
GRRLIB_Render();
|
2009-03-11 17:23:41 +00:00
|
|
|
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;
|
|
|
|
}
|