mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-10 10:22:20 +00:00
67987d304b
[CHG] Updated all examples to work with the current revision. [CHG] Optimized different things~
32 lines
652 B
C
32 lines
652 B
C
/*===========================================
|
|
GRRLIB (GX Version)
|
|
- Template Code -
|
|
|
|
Minimum Code To Use GRRLIB
|
|
============================================*/
|
|
#include "../../../GRRLIB/GRRLIB/GRRLIB.h"
|
|
|
|
|
|
#include <stdlib.h>
|
|
#include <wiiuse/wpad.h>
|
|
|
|
|
|
|
|
int main() {
|
|
u32 WPADDown;
|
|
|
|
GRRLIB_Init();
|
|
WPAD_Init();
|
|
|
|
while(1) {
|
|
WPAD_ScanPads();
|
|
WPADDown = WPAD_ButtonsDown(0);
|
|
|
|
GRRLIB_Render();
|
|
if(WPADDown & WPAD_BUTTON_HOME) {
|
|
exit(0);
|
|
}
|
|
}
|
|
GRRLIB_Exit(); // Be a good boy, clear the memory allocated by GRRLIB
|
|
return 0;
|
|
}
|