iPhone touch control sticking down

Hi everyone. I’m making a game where the player controls a rocket. To fire thrusters and move forward, you touch the screen anywhere. The problem is that sometime the touch “sticks” and it fires thrusters for a second or two after the user stops touching the screen, which makes the rocket spin out of control, as the thrusters require some precision to maneuver. Has anyone else run into this issue, and if so, how can I fix it?

The code I’m using to access the touch controls is this:

if (iPhoneInput.touchCount == 1) { 
   y = 1 * forceMultiplier * 15; 
} 
else { 
   y = 0; 
}

Does it happen in the remote, or when you build it to the iphone. I have that issue all the time with the remote, but not when the game is on the device. I thought I read somewhere here that it was due to the wifi connection of the remote that it misses touches and releases.

it happens if I build to the iPhone as well. Testing it some more, it seems the “one or two seconds” I said before isn’t accurate. The controls actually don’t stop sticking unless I tap the screen again at which point it will register, but if I don’t touch the screen, the thrusters will continue firing as if the screen is being touched.

Hi, I’m curious if you have any kind of protective cover on your device? I’ve noticed sometimes these things send false inputs to the touch screen.

nope, no protective cover. :confused:

I’m having this problem too. I have to touch the screen again before it detects that I’ve stopped touching the screen.

Have you tried with Input.GetMouseButton(0)?

Smag, I tried what you suggested and it’s still sticking. I believe it might be because my frame rate is pretty low right now, but that’s still a pretty big issue

Also experiencing this. FYI we are seeing it on SDK 2.2.1

It would be good if there was a way to initialise all touches at the hardware level so if / when it happens we can clear them when the level resets or on another similar opportune point where touches arent required. At least then the user will only be in ‘stuck press’ mode for a short period of time.

I don’t know if this will help, but instead of just checking the touchcount, you can try checking the the touchphase of the touch and see if it corresponds to a finger lift. Grasping at straws, but maybe that will register earlier.