【发布时间】:2011-04-28 11:23:23
【问题描述】:
我试图让我的 CCLayer 子类响应多点触控。在我调用的 init 方法中
self.isTouchEnabled=YES;
在一个名为 registerWithTouchDispatcher 的方法中,我调用了
[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:NO];
在我的应用委托中,我调用
[glView setMultipleTouchEnabled:YES];
调用 ccTouchBegan:withEvent: 方法,但不会调用 ccTouchesBegan:withEvent。我对 cocos2d 很陌生,所以它可能很简单,我只是不知道它是什么。
【问题讨论】:
-
愚蠢的问题但是......是否有多次触摸?
标签: cocos2d-iphone multi-touch