00001 #ifndef KEYBOARDINTERFACE_H 00002 #define KEYBOARDINTERFACE_H 00003 00004 #include "Types.h" 00005 #include "KeyboardEvent.h" 00006 00007 namespace RenderTools{ 00008 00009 class KeyboardInterface { 00010 friend class KeyboardEvent; 00011 public: 00012 virtual void onKeyboardEvent( const KeyboardEvent & ) = 0; 00013 00014 static bool getKeyState( int key ); 00015 00016 private: 00017 static map<int, bool> s_keys; 00018 }; 00019 00020 }; 00021 00022 #endif 00023
1.5.8