00001 #ifndef TOUCHEVENT_H 00002 #define TOUCHEVENT_H 00003 00004 #include "Types.h" 00005 #include "TouchPoint.h" 00006 00007 using namespace std; 00008 00009 namespace RenderTools { 00010 00011 class TouchEvent { 00012 public: 00013 enum Type{ 00014 TOUCHES_BEGAN, 00015 TOUCHES_MOVED, 00016 TOUCHES_ENDED, 00017 TOUCHES_CANCELLED, 00018 TOUCHES_HOLDING 00019 }; 00020 00021 TouchEvent( Type type, const vector< TouchIndex > &, const vector< TouchPoint > & = vector< TouchPoint >() ); 00022 TouchEvent( Type type, TouchIndex & index, const TouchPoint & point = TouchPoint() ); 00023 00024 Type getType( void ) const; 00025 const vector< TouchIndex > & getIndices( void ) const; 00026 const vector< TouchPoint > & getPoints( void ) const; 00027 00028 private: 00029 Type m_type; 00030 vector< TouchIndex > m_indices; 00031 vector< TouchPoint > m_points; 00032 00033 }; 00034 00035 };//namespace RenderTools 00036 00037 #endif
1.5.8