cocos2d 触摸事件疑问
Cocos2d-x
todn211
(todn211)
2016年04月13日 05:07
#1
cocos2d提供两种注册触摸事件的方法,分别是:
复制代码
-(void) addStandardDelegate:(id) delegate priority:(int)priority;
-(void) addTargetedDelegate:(id) delegate priority:(int)priority swallowsTouches:(BOOL)swallowsTouches;
现在有个疑惑,
addStandardDelegate是针对多点触摸的,但它没有
swallowsTouches这个功能,那如果我要处理多点触摸,同时又要
swallowsTouches,那应该怎样做?能不能通过
addTargetedDelegate折中的处理多点触摸吗,虽然它是针单点触摸。