00001 #ifndef __KX_TOUCHEVENTMANAGER 00002 #define __KX_TOUCHEVENTMANAGER 00003 00004 #include "SCA_EventManager.h" 00005 #include "KX_TouchSensor.h" 00006 #include "KX_GameObject.h" 00007 00008 #include <vector> 00009 using namespace std; 00010 00011 00012 class KX_TouchEventManager : public SCA_EventManager 00013 { 00014 DT_RespTableHandle m_resphandle; 00015 DT_SceneHandle m_scenehandle; 00016 class SCA_LogicManager* m_logicmgr; 00017 00018 public: 00019 KX_TouchEventManager(class SCA_LogicManager* logicmgr, DT_RespTableHandle resphandle, DT_SceneHandle scenehandle); 00020 virtual void NextFrame(double curtime,double deltatime); 00021 virtual void EndFrame(); 00022 virtual void RemoveSensor(class SCA_ISensor* sensor); 00023 00024 virtual void RegisterSensor(SCA_ISensor* sensor); 00025 SCA_LogicManager* GetLogicManager() { return m_logicmgr;} 00026 }; 00027 00028 #endif //__KX_TOUCHEVENTMANAGER 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039