cocos2d如何开启多点触控?多点、触控、cocos2d

2023-09-06 09:53:25 作者:情笙

谁能告诉我如何在 cocos2d 应用程序中启用多点触控?我是新来的.非常感谢任何帮助.

Could anyone show me how to enable multi touch in cocos2d application please? I am new to this. Really appreciate any help.

推荐答案

对你的 UIWindow 或 UIView 使用 setMultipleTouchEnabled:Yes,然后为你想要接收触摸的层设置 isTouchEnabled 属性.

Use setMultipleTouchEnabled:Yes for your UIWindow or UIView, and then set the isTouchEnabled property for the layer on which you want to receive touches.

 
精彩推荐