摘要:
http://blog.csdn.net/davintanger/article/details/6836143Cocos2d 开发中提供了两种touch处理方式,Standard Touch Delegate和 Targeted Touch Delegate方式(参见CCTouchDelegateProtocol.h中源代码),CCLayer默认是采用第一种方式(参见CCLayer的 registerWithTouchDispatcher方法)。在CCLayer子类中要能接收touch事件,首先需要激活touch支持,在init方法中设置isTouchEnabled值为YES。Standar 阅读全文
posted @ 2012-04-06 19:33
pengyingh
阅读(1081)
评论(0)
推荐(0)


浙公网安备 33010602011771号