Touchscreen tx,ty reseting
Root / Programming Questions / [.]
thatguyCreated:
How can i make a touch button on the touchscreen?
thanks MZ952
and how have you this numbers 60,120 ?How can i make a touch button on the touchscreen?WHILE 1 TOUCH OUT T,X,Y IF T>0 THEN IF X>60 AND X<120 AND Y>60 AND Y<120 THEN GFILL 60,60,120,120 ENDIF ELSE GCLS GBOX 60,60,120,120 ENDIF WAIT WEND
Try this and you'll see the coordinatesand how have you this numbers 60,120 ?How can i make a touch button on the touchscreen?WHILE 1 TOUCH OUT T,X,Y IF T>0 THEN IF X>60 AND X<120 AND Y>60 AND Y<120 THEN GFILL 60,60,120,120 ENDIF ELSE GCLS GBOX 60,60,120,120 ENDIF WAIT WEND
ACLS XSCREEN 2 WHILE 1 DISPLAY 1 ?X LOCATE 0,1 ?Y TOUCH OUT T,X,Y IF T>0 THEN IF X>60 AND X<120 AND Y>60 AND Y<120 THEN GFILL 60,60,120,120 ENDIF ELSE GCLS GBOX 60,60,120,120 ENDIF WAIT WENDbtw MZ952 just changed your code a lil' bit so he's able to see the coordinates
There is no way to change the TX and TY values of TOUCH OUT, other than touching the touchscreen.