Correct me if I am wrong.
On iPhone, touching the screen is the same as on PC moving the mouse AND clicking left.
If you do not touch the screen, mousex and y return the last known mouse position. Of course, on PC, mousex&y are updated even if no LMB is pressed.
Can we have a menu on IDE or a metacomand in GLB, called "TOUCHSCREEN ON", so only mousex&y are updated if LMB is pressed?
This way, we will not make this mistakes when programming for iPhone.
Just an idea, maybe I am wrong...
If I understand your question... You could use a function like this:
SYSTEMPOINTER TRUE
TYPE Mouse
x
y
b1
b2
ENDTYPE
GLOBAL mouse AS Mouse
WHILE TRUE
LOCAL mx,my,b1,b2
MOUSESTATE mx,my,b1,b2
IF b1
mouse.x=mx
mouse.y=my
ENDIF
PRINT "x:"+mouse.x,0,0
PRINT "y:"+mouse.y,0,10
SHOWSCREEN
WEND
cheers