The trick is to create a field on the TEXT screen. It can be as tiny as 1 x 1 points and located at a screen corner. That activates the whole screen for detecting touches! In fact I just tested again with the field entirely outside the visible screen area (ie. made the field x coordinate a negative number.) The TOUCH commands still work.
Here is some code to demonstrate:
Code: Select all
/* Touch in Text Mode rbytes, February 2019 */ FIELD "activate" TEXT "" AT 0,0 SIZE 1,1 PRINT "Touch with one finger to get screen coordinates in TEXT mode." PRINT "Touch with two fingers to quit." PRINT DO SLOWDOWN GET TOUCH 0 as x,y GET TOUCH 1 as ox,oy if x>-1 or y>-1 then print x,y if ox>-1 then end UNTIL 0