cocos2d如何开启多点触控? [英] How to enable multi touch in cocos2d?

查看:20
本文介绍了cocos2d如何开启多点触控?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何在 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.

这篇关于cocos2d如何开启多点触控?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆