Touch section issues
reddotinc
Member Posts: 653
Hi guys,
I'm working on a project at the moment that has two touch sections, one for the left side of the screen, and one for the right. I have it changing an integer when the touch is pressed, and changing back when released. This works great.
However, when I touch in the section and drag my finger out of that section, the integer does not change back until another touch is released in that section, and likewise for the right section.
If I have the left section touched and touch the right section, then the left section's touch is affected which i do not want.
Any ideas on how best to integrate this?
Thanks in advance
I'm working on a project at the moment that has two touch sections, one for the left side of the screen, and one for the right. I have it changing an integer when the touch is pressed, and changing back when released. This works great.
However, when I touch in the section and drag my finger out of that section, the integer does not change back until another touch is released in that section, and likewise for the right section.
If I have the left section touched and touch the right section, then the left section's touch is affected which i do not want.
Any ideas on how best to integrate this?
Thanks in advance
Comments
Darren.
I tried using touch is inside, but once there is another touch (e.g. if i hold the left and touch the right) the left touch gets disabled.
It seems like I'm missing some configuration for what to do if there are multiple touches?
I have not used multiple touches before so this is where my knowledge ends.
Maybe you have to use Touch1.X? I also see there is a Touch.Count function. Maybe someone else in the forum with experience in these can chime in?
I want to be able to set as effectively a button, so as long as the touch is on the button and held down, then it is active, no matter how many touches occur elsewhere
When i have that, if I have touch 1 holding left, then press outside it, it removes the integer from the left touch
There is also a How To on How do I make use of multi-touch. (You have to scroll down a bit.)
I think you might have to make use of Touch.Count.