I think I have read every article on multitouch, but I am still having a problem under 1 circumstance… can someone help or give me ideas on how to solve?
I am working on a retro space shooter, and I have several buttons… rotate left, rotate right, thrust, and fire. It is possible that you can press rotate and thrust at the same time, so I enabled multitouch. Seems that while playing the game on devices, users tend to slide their fingers off of the buttons, so I added an invisible image on top of the buttons, and when the image has moved a certain distance away from the button, I stop the action (read that in a forum thread somewhere).
This seems to work well… if the movement isn’t very fast.
If the player moves his finger/thumb off of the rotate button (as an example) very fast while lifting off of the device, the rotation just continues… no “ended” or “cancelled” event is fired. This seems to happen more and more as the intensity of the game picks up.
I am a bit stumped at this point… how do I make sure that rotation and/or thrust doesn’t just continue forever?
Thanks,
–john