00001 #ifndef INPUTENGINE_H 00002 #define INPUTENGINE_H 00003 00004 #pragma once 00005 #include "Mouse.h" 00006 #include "Keyboard.h" 00007 // #include "Gamepad.h" 00008 // #include "Joystick.h" 00009 00011 00015 class CInputEngine : public CEntity, public CSingleton<CInputEngine> 00016 { 00017 public: 00018 CInputEngine(); 00019 virtual ~CInputEngine(); 00020 00021 public: 00022 00027 CMouse *GetMouse(); 00032 CKeyboard *GetKeyboard(); 00037 int Create(); 00042 int Poll(); 00047 void Destroy(); 00052 virtual bool IsOfType(eEntityType eType); 00053 00054 protected: 00055 00056 CKeyboard *m_pKeyboard; 00057 CMouse *m_pMouse; 00058 // CJoystick *m_pJoystick; /*!< Pointer to joystick device class */ 00059 // CGamepad *m_pGamepad; /*!< Pointer to gamepad device class */ 00060 }; 00061 00062 #endif