How do I grab the X and Y positions of where a finger touches the screen in a repeating loop? I've set up a panel, with the "touch" option checked in the Designer/Generate Members, so that now the code has a sub area:
Sub Panel1_Touch (Action As Int, X As Float, Y As Float)
End Sub
As a newbie and not the brightest programmer on the block, I've read posts on the touch subject, and the code examples seem so complicated I don't know what I need to include. is there a simple way to read the X and Y when my finger touches the screen so I can write something like 'If X is >100 AND X<110 And Y>60 AND Y<70 THEN do stuff?' I know that isn't written correctly, its just to explain I'm looking to see if the user is touching a certain area of the screen.
I want to write the simplest, ie shortest code. Thanks.
:sign0163:
Sub Panel1_Touch (Action As Int, X As Float, Y As Float)
End Sub
As a newbie and not the brightest programmer on the block, I've read posts on the touch subject, and the code examples seem so complicated I don't know what I need to include. is there a simple way to read the X and Y when my finger touches the screen so I can write something like 'If X is >100 AND X<110 And Y>60 AND Y<70 THEN do stuff?' I know that isn't written correctly, its just to explain I'm looking to see if the user is touching a certain area of the screen.
I want to write the simplest, ie shortest code. Thanks.
:sign0163: