CrossFramework Library
|
00001 00006 #if defined(XBASE_INCLUDED_TOUCH_HPP) 00007 #else 00008 #define XBASE_INCLUDED_TOUCH_HPP 00009 00010 //------------------------------------------------------------ 00011 #include <XBase/TouchTap.hpp> 00012 #include <XBase/TouchUpdateData.hpp> 00013 00014 //------------------------------------------------------------ 00015 namespace XBase { 00017 00018 00023 class Touch 00024 { 00025 public: 00027 00028 00035 Touch( uint aTapCount ); 00036 00038 ~Touch(); 00040 00042 00043 00044 void update( const TouchUpdateData& aData ); 00045 00047 const TouchUpdateData lastUpdateData()const; 00049 00051 00052 00055 uint tapCount()const; 00056 00064 const TouchTap tapAtIndex( uint aIndex )const; 00066 00067 private: 00068 uint mTapCount; 00069 TouchUpdateData mData; 00070 TouchTap mTaps[ TouchUpdateData::TAP_COUNT_MAX ]; 00071 }; 00073 } 00074 //------------------------------------------------------------ 00075 #endif 00076 // EOF