00001 #ifndef OSDL_MOUSE_COMMON_H_ 00002 #define OSDL_MOUSE_COMMON_H_ 00003 00004 00005 #include "OSDLEvents.h" // for EventsException 00006 00007 #include "Ceylan.h" // for Uint8, etc. 00008 00009 00010 #include <string> 00011 #include <list> 00012 00013 00014 00015 namespace OSDL 00016 { 00017 00018 00019 namespace Events 00020 { 00021 00022 00024 typedef Ceylan::Uint8 MouseNumber ; 00025 00027 extern OSDL_DLL const MouseNumber DefaultMouse ; 00028 00029 00031 typedef Ceylan::Uint8 MouseButtonNumber ; 00032 00034 typedef Ceylan::Uint8 MouseWheelNumber ; 00035 00036 00042 typedef Ceylan::Uint8 MouseButtonMask ; 00043 00044 00046 extern OSDL_DLL const MouseButtonNumber LeftButton ; 00047 00049 extern OSDL_DLL const MouseButtonNumber MiddleButton ; 00050 00052 extern OSDL_DLL const MouseButtonNumber RightButton ; 00053 00054 00060 extern OSDL_DLL const MouseButtonNumber WheelUp ; 00061 00062 00068 extern OSDL_DLL const MouseButtonNumber WheelDown ; 00069 00070 00071 00072 00074 class OSDL_DLL MouseException: public EventsException 00075 { 00076 public: 00077 explicit MouseException( const std::string & reason ) 00078 throw() ; 00079 virtual ~MouseException() throw() ; 00080 00081 } ; 00082 00083 00084 } 00085 00086 } 00087 00088 00089 00090 #endif // OSDL_MOUSE_COMMON_H_ 00091