千锋3G学院-iOS开发视频教程-愤怒的小鸟-第12讲-Cocos2D事件机制.pdf

  • 文件大小: 5.41MB
  • 文件类型: pdf
  • 上传日期: 2025-08-17
  • 下载次数: 0

概要信息:

源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
欧阳坚 
视频、源代码、交流网址 
www.1000phone.net 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
按照路劲运动 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
2.  Cocos2D标准事件 
1.  事件总体介绍 
3.  Cocos2D特有事件 
4.  整合代码 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
标准事件 
@protocol CCStandardTouchDelegate 
 
特有事件 
@protocol CCTargetedTouchDelegate 
 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
glView/UITouch 
CCTouchDispatcher 
CCTargete
dTouchHa
ndler 
CCStanda
rdTouchH
andler 
CCNode 
CCTargete
dTouchHa
ndler 
CCStandar
dTouchHa
ndler 
CCNode 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
@protocol CCStandardTouchDelegate  
@optional 
- (void)ccTouchesBegan:(NSSet *)touches  
  withEvent:(UIEvent *)event; 
- (void)ccTouchesMoved:(NSSet *)touches 
  withEvent:(UIEvent *)event; 
- (void)ccTouchesEnded:(NSSet *)touches 
  withEvent:(UIEvent *)event; 
- (void)ccTouchesCancelled:(NSSet *)touches  
  withEvent:(UIEvent *)event; 
@end 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
@protocol CCTargetedTouchDelegate  
- (BOOL)ccTouchBegan:(UITouch *)touch  
  withEvent:(UIEvent *)event; 
@optional 
- (void)ccTouchMoved:(UITouch *)touch  
  withEvent:(UIEvent *)event; 
- (void)ccTouchEnded:(UITouch *)touch  
  withEvent:(UIEvent *)event; 
- (void)ccTouchCancelled:(UITouch *)touch  
  withEvent:(UIEvent *)event; 
@end 
 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
+ (CCTouchDispatcher*)sharedDispatcher; 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
-(void) addStandardDelegate: 
 (id) delegate 
 priority:(int)priority; 
 
 
-(BOOL) isTouchEnabled; 
 
 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
-(void) addTargetedDelegate: 
 (id) delegate 
  priority:(int)priority  
 swallowsTouches:(BOOL)swallowsTouches; 
 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
-(void) removeDelegate:(id) delegate; 
-(void) removeAllDelegates; 
 
源⾃自清华 值得信赖 
中国移动互联⺴⽹网研发培训专家 
} 千锋互联:          www.1000phone.com 
} 千锋3G学院:       www.mobiletrain.org 
} 千锋嵌入式学院:  www.embedtrain.org

缩略图:

  • 缩略图1
  • 缩略图2
  • 缩略图3
  • 缩略图4
  • 缩略图5
当前页面二维码

广告: