00001 00006 00007 #ifndef __KX_KEYBOARDMANAGER 00008 #define __KX_KEYBOARDMANAGER 00009 00010 00011 #include "SCA_EventManager.h" 00012 #include "SCA_ISystem.h" 00013 00014 #include <vector> 00015 00016 using namespace std; 00017 00018 #include "SCA_IInputDevice.h" 00019 00020 00021 class SCA_KeyboardManager : public SCA_EventManager 00022 { 00023 class SCA_IInputDevice* m_inputDevice; 00024 class SCA_LogicManager* m_logicmanager; 00025 00026 00027 public: 00028 SCA_KeyboardManager(class SCA_LogicManager* logicmgr,class SCA_IInputDevice* inputdev) 00029 : SCA_EventManager(KEYBOARD_EVENTMGR), 00030 m_logicmanager(logicmgr), 00031 m_inputDevice(inputdev) 00032 { 00033 }; 00034 00035 virtual ~SCA_KeyboardManager() { 00036 00037 }; 00038 00039 bool IsPressed(SCA_IInputDevice::KX_EnumInputs inputcode); 00040 00041 00042 virtual void NextFrame(double curtime,double deltatime); 00043 virtual void RegisterSensor(class SCA_ISensor* sensor); 00044 SCA_IInputDevice* GetInputDevice() { return m_inputDevice;} 00045 }; 00046 00047 #endif //__KX_KEYBOARDMANAGER