开发者

What's the difference between ccTouchesCancelled and ccTouchesEnded event in Cocos2d?

开发者 https://www.devze.com 2023-02-13 22:12 出处:网络
I开发者_JAVA百科\'m wonderring that what\'s the difference between ccTouchesCancelled and ccTouchesEnded events in Cocos2d?

I开发者_JAVA百科'm wonderring that what's the difference between ccTouchesCancelled and ccTouchesEnded events in Cocos2d?

Thanks!

Tien


Any Touches Cancelled on the iPhone refers a situation where the user was touching a element, and then was interrupted by an unexpected (on your part) notification such as a text-message, low battery warning, or phone call. In that situation they were touching the element but were interrupted in the middle. You should handle it by understanding where ever the user was last touching the screen might not have been where he intended to stop touching (touch up).

Touches Ended means the user intentionally stopped touching the element.

0

精彩评论

暂无评论...
验证码 换一张
取 消