小编Tec*_*gle的帖子

cocos2d:ccTouchesBegan未调用,但ccTouchBegan确实触发了

我想让我的CCLayer子类响应多点触控.在我调用的init方法中

self.isTouchEnabled=YES;
Run Code Online (Sandbox Code Playgroud)

在一个名为registerWithTouchDispatcher的方法中,我调用了

[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:NO];
Run Code Online (Sandbox Code Playgroud)

在我的应用代表中,我打电话

[glView setMultipleTouchEnabled:YES];
Run Code Online (Sandbox Code Playgroud)

调用ccTouchBegan:withEvent:方法,但从不调用ccTouchesBegan:withEvent.我对cocos2d很新,所以它可能很简单,我只是无法弄清楚它是什么.

multi-touch cocos2d-iphone

3
推荐指数
1
解决办法
5022
查看次数

标签 统计

cocos2d-iphone ×1

multi-touch ×1