00001 #ifndef __KEYBOARD_H__ 00002 #define __KEYBOARD_H__ 00003 00004 #ifndef DOXYGEN_IGNORE_TAG 00005 00026 #endif 00027 00028 #include "../../InputManager.h" 00029 #include "../../Input.h" 00030 00031 namespace NE 00032 { 00033 class SDL_Keyboard : public Input 00034 { 00035 private: 00036 int m_nbKeys; 00037 unsigned char* m_pKeys; 00039 unsigned char isKey(unsigned int key); 00040 00041 public: 00042 SDL_Keyboard(void); 00043 ~SDL_Keyboard(void); 00044 00045 NE::InputManager::ArrowsDirection getDirectionsPressed(void)const; 00046 00047 bool needEscape(void); 00048 00049 NE::InputManager::Buttons getButtonsState(void); 00050 00051 void update(void); 00052 }; 00053 } 00054 00098 #endif