Appendix
App-12
PL-5700 Series User’s Manual
}
}
/**********************/
/* INPUT TUCHPANEL */
/**********************/
void touchpanel_on(void)
{
int i, value;
inregs.x.ax = TP_IN_NOWAIT;
int86(ATPH_SYS_CALL, &inregs, &outregs);
if(outregs.h.ah == 0) /* Touch Panel On */
{
value=FALSE;
for(i=0; tpcd[i].sx; i++)
{
if( /* Time in area */
((short)outregs.x.dx > tpcd[i].sx)&&
((short)outregs.x.bx > tpcd[i].sy)&&
((short)outregs.x.dx < tpcd[i].ex)&&
((short)outregs.x.bx < tpcd[i].ey))
{
inregs.h.ah = WRITE_DATA;
inregs.x.cx = tpcd[i].key;
int86(KEYBOARD_BIOS, &inregs, &outregs);
buzzer_on();
wait_touch_off();
buzzer_off();
value=TRUE;
break;