00001 #ifndef MOUSE_EVENT_H 00002 #define MOUSE_EVENT_H 00003 00004 #include "Types.h" 00005 00006 namespace RenderTools{ 00007 00008 class MouseEvent { 00009 public: 00010 enum Type { 00011 MOUSE_UP, 00012 MOUSE_DOWN, 00013 MOUSE_MOVE 00014 }; 00015 00016 MouseEvent( Type type, const Vec2 & location = Vec2(), int button = 0 ); 00017 00018 Type getType( void ) const; 00019 int getButton( void ) const; 00020 bool getState( void ) const; 00021 const Vec2 & getLocation( void ) const; 00022 00023 protected: 00024 Type m_type; 00025 int m_button; 00026 bool m_state; 00027 Vec2 m_location; 00028 }; 00029 00030 }; 00031 00032 #endif 00033
1.5.8