• Main Page
  • Related Pages
  • Classes
  • Files
  • File List
  • File Members

BMInputEvent.h

00001 //
00002 //  BMInputEvent.h
00003 //  BingMaps
00004 //
00005 //  Created by Daphne Choong on 09/03/2011.
00006 //  Copyright (c) 2011 Microsoft Corporation. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 #import <UIKit/UIKit.h>
00011 
00012 typedef enum {
00013     unknownMovement,
00014     horizontalMovement,
00015     verticalMovement
00016 } BMInputMovement;
00017 
00018 // This could be optimised to use struct with a vector of CGPoints
00019 @interface BMInputEvent : NSObject {
00020     NSMutableArray *pointVector;
00021     int touchCount;
00022     int tapCount;
00023     double timestamp;
00024     int changedTouchCount;
00025     BMInputMovement inputMovement;    
00026 }
00027 
00028 @property (nonatomic, retain) NSMutableArray *pointVector;
00029 @property (nonatomic, assign) int touchCount;
00030 @property (nonatomic, assign) int tapCount;
00031 @property (nonatomic, assign) double timestamp;
00032 @property (nonatomic, assign) int changedTouchCount;
00033 @property (nonatomic, assign) BMInputMovement inputMovement;
00034 
00035 - (id) initWithPoint:(CGPoint)point;
00036 - (id) initWithEvent:(UIEvent*)event changedTouches:(NSSet*)changedSet inView:(UIView*)view;
00037 - (void) add: (CGPoint)point;
00038 
00039 @end

Generated on Tue May 3 2011 11:57:16 for Bing Maps iOS Control by  doxygen 1.7.2