iOS开发教程Cocos2D项目第12讲-Cocos2D事件机制

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家欧阳坚视频、源代码、交流网址源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家按照路劲运动源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家2.Cocos2D标准事件1.事件总体介绍3.Cocos2D特有事件4.整合代码源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家标准事件@protocolCCStandardTouchDelegate特有事件@protocolCCTargetedTouchDelegate源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家glView/UITouchCCTouchDispatcherCCTargetedTouchHandlerCCStandardTouchHandlerCCNodeCCTargetedTouchHandlerCCStandardTouchHandlerCCNode源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家@protocolCCStandardTouchDelegateNSObject@optional-(void)ccTouchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event;-(void)ccTouchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event;-(void)ccTouchesEnded:(NSSet*)toucheswithEvent:(UIEvent*)event;-(void)ccTouchesCancelled:(NSSet*)toucheswithEvent:(UIEvent*)event;@end源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家@protocolCCTargetedTouchDelegateNSObject-(BOOL)ccTouchBegan:(UITouch*)touchwithEvent:(UIEvent*)event;@optional-(void)ccTouchMoved:(UITouch*)touchwithEvent:(UIEvent*)event;-(void)ccTouchEnded:(UITouch*)touchwithEvent:(UIEvent*)event;-(void)ccTouchCancelled:(UITouch*)touchwithEvent:(UIEvent*)event;@end源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家+(CCTouchDispatcher*)sharedDispatcher;源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家-(void)addStandardDelegate:(idCCStandardTouchDelegate)delegatepriority:(int)priority;-(BOOL)isTouchEnabled;源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家-(void)addTargetedDelegate:(idCCTargetedTouchDelegate)delegatepriority:(int)priorityswallowsTouches:(BOOL)swallowsTouches;源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家-(void)removeDelegate:(id)delegate;-(void)removeAllDelegates;源⾃自清华值得信赖中国移动互联⺴⽹网研发培训专家} 千锋互联:} 千锋3G学院:} 千锋嵌入式学院:

1 / 12
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功