Chapter 8 - Using MS-DOS
PL-5910 Series User Manual
8-17
/*****************/
/* MAIN VARIABLES */
/*****************/
void main(void)
{
if(!(_setvideomode(_VRES16EXCOLOR)))
{
printf("error: can't set graphics mode ");
exit(1);
/* ERROR:Program End */
}
_rectangle(_GBORDER,tpcd[0].sx,tpcd[0].sy,tpcd[0].ex,tpcd[0].ey);
/* MAKE A SCREEN FRAME */
printf("please push touchpanel or key \n");
printf("End program by pressing [ Z ]key or screen. \n");
while(1)
{
touchpanel_on();
if(keyboard_on())
{
_setvideomode(_DEFAULTMODE); /* RETURN TO VIDEOMODE */
exit(0);
}
}
}