开发者

multi touch functions needed?

I am not sure which are the functions to implement mul开发者_Python百科ti touch in cocos.? could anyone show me a demo?


You'll need to create a view then use touchesBegan, touchesMoved, touchesCancelled and touchesEnded callbacks to implement your custom behaviour.

Apple's docs are a good place to start.


I can't point you to a demo, but you'll also need to make sure that you set multipleTouchesEnabled to YES and find some way to keep track of the touches.

This is a useful starting point for tracking the touches

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜