I'm new to the whole idea of programming buttons for the causative touch screen, yes I have google'd so don't freak out and tell me to go read the ****ing manual. I'd like to know how to do this. I'm almost done with my game, just adding a menu and the whole capacitive touch screen thing is f---ing me up.
I'm using this method to get the touch, but its tracking every change (Yes, I know the ZHD's screen is multi touch). I really can't figure this out, if someone could explain how to get around this (I don't need source code) it'd be greatly appreciated. Thank you in advanced.
Method:
Code:
IEnumerator<TouchLocation> touches = TouchPanel.GetState().GetEnumerator();
while (touches.MoveNext())
{
if (
(touches.Current.Position.X >= 39 && touches.Current.Position.Y >= 120)
&&
(touches.Current.Position.X <= 218 && touches.Current.Position.Y <= 181)
)
{
// DO STUFF
}
}