00001 #ifndef TILTEVENT_H 00002 #define TILTEVENT_H 00003 00004 #include "Types.h" 00005 00006 namespace RenderTools{ 00007 00008 class KeyboardEvent { 00009 public: 00010 enum Type { 00011 KEY_UP, 00012 KEY_DOWN 00013 }; 00014 00015 KeyboardEvent( Type type, int key ); 00016 00017 Type getType( void ) const; 00018 int getKey( void ) const; 00019 bool getState( void ) const; 00020 00021 private: 00022 Type m_type; 00023 int m_key; 00024 bool m_state; 00025 00026 }; 00027 00028 }; // namespace 00029 00030 #endif 00031
1.5.8