41 lines
1007 B
C
41 lines
1007 B
C
|
#include "gfx.h"
|
||
|
#include "jg10.h"
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
GEventMouse ev;
|
||
|
#if !JG10_SHOW_SPLASH
|
||
|
gFont font;
|
||
|
#endif
|
||
|
|
||
|
gfxInit();
|
||
|
|
||
|
ginputGetMouse(0);
|
||
|
jg10Init();
|
||
|
|
||
|
#if JG10_SHOW_SPLASH
|
||
|
jg10ShowSplash();
|
||
|
#else
|
||
|
font = gdispOpenFont("DejaVuSans16_aa");
|
||
|
gdispDrawString((gdispGetWidth()/2)-(gdispGetStringWidth("Touch to start!", font)/2), gdispGetHeight()/2, "Touch to start!", font, GFX_WHITE);
|
||
|
gdispCloseFont(font);
|
||
|
#endif
|
||
|
|
||
|
while (1) {
|
||
|
ginputGetMouseStatus(0, &ev);
|
||
|
if (ev.buttons & GINPUT_MOUSE_BTN_LEFT) {
|
||
|
while (ev.buttons & GINPUT_MOUSE_BTN_LEFT) { // Wait until release
|
||
|
ginputGetMouseStatus(0, &ev);
|
||
|
}
|
||
|
|
||
|
#if !JG10_SHOW_SPLASH
|
||
|
font = gdispOpenFont("DejaVuSans16");
|
||
|
gdispFillArea((gdispGetWidth()/2)-(gdispGetStringWidth("Touch to start!", font)/2), gdispGetHeight()/2, gdispGetWidth()/2, 17, GFX_BLACK);
|
||
|
gdispCloseFont(font);
|
||
|
#endif
|
||
|
|
||
|
jg10Start();
|
||
|
}
|
||
|
}
|
||
|
}
|