00001 #ifndef TOUCHINTERFACE_H 00002 #define TOUCHINTERFACE_H 00003 00004 #include "TouchEvent.h" 00005 00006 namespace RenderTools{ 00007 00008 class TouchInterface { 00009 friend class TouchEvent; 00010 public: 00011 virtual void onTouchEvent( const TouchEvent & ) = 0; 00012 00013 static const TouchPoint & getTouchPoint( TouchIndex ); 00014 static bool isTouchPoint( TouchIndex ); 00015 private: 00016 static map< TouchIndex, TouchPoint > s_touches; 00017 }; 00018 00019 }; // namespace 00020 00021 #endif 00022
1.5.8