FBPL Command Reference

Table Of Contents
185
10.54 TOUCHPRESS()
Description
Detect the status of the touch screen. Return 1 if the touch screen for the specified region is pressed,
otherwise returns 0.
Syntax
TOUCHPRESS (left, top, right, bottom)
Parameter
Description
left
Left side position of region (pixel)
top
Top side position of region (pixel)
right
Right side position of region (pixel)
bottom
Bottom side position of region (pixel)
Note: TJ-4021TN/TJ-4021TNR/TJ-4121TN/TJ-4121TNR/TJ-4422TN/TJ-4522TN only.
Example
Sample Code
DOWNLOAD "DEMO.BAS"
:START
IF TOUCHPRESS(0,90,272,120) <> 0 THEN GOTO A
GOTO START
ENDIF
:A
CLS
SIZE 4,1
GAP 0,0
DIRECTION 1
TEXT 30,30,"3",0,1,1,"TOUCH TEST!!"
PRINT 1,1
EOP
DEMO