如何在cocos2d启用多点触摸? [英] How to enable multi touch in cocos2d?

查看:282
本文介绍了如何在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天全站免登陆