00001 #ifndef KEYBOARD_H 00002 #define KEYBOARD_H 00003 00004 #pragma once 00005 #include "InputDevice.h" 00006 #include "InputDeviceState.h" 00007 #include "KeyTable.h" 00008 00010 00013 class CKeyboard : public CInputDevice, public CInputDeviceState 00014 { 00015 CREATOR(CInputEngine); 00016 00017 protected: 00018 00019 CKeyboard(); 00020 virtual ~CKeyboard(); 00021 00026 virtual int Create(); 00031 virtual void Destroy(); 00036 virtual UINT Poll(); 00037 00038 public: 00044 bool IsKeyDown(char cKey); 00050 bool IsKeyUp(char cKey); 00056 UINT GetKeyState(UINT uiKeyIndex); 00061 virtual bool IsOfType(eEntityType eType); 00062 }; 00063 00064 #endif