开发者

multi touch functions needed?

开发者 https://www.devze.com 2022-12-12 07:15 出处:网络
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, touchesCancell

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

精彩评论

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