00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #ifndef GCN_MOUSEINPUT_HPP
00056 #define GCN_MOUSEINPUT_HPP
00057
00058 #include "guichan/platform.h"
00059
00060 namespace gcn
00061 {
00062
00067 class GCN_CORE_DECLSPEC MouseInput
00068 {
00069 public:
00070
00074 MouseInput(){};
00075
00085 MouseInput(int button, int type, int mousex, int mousey, int timeStamp);
00086
00092 void setType(int type);
00093
00099 int getType() const;
00100
00106 void setButton(int button);
00107
00113 int getButton() const;
00114
00120 void setTimeStamp(int timeStamp);
00121
00127 int getTimeStamp() const;
00128
00132 enum
00133 {
00134 EMPTY = 0,
00135 LEFT,
00136 RIGHT,
00137 MIDDLE,
00138 WHEEL_UP,
00139 WHEEL_DOWN,
00140 PRESS,
00141 RELEASE,
00142 MOTION
00143 };
00144
00145 int x, y;
00146
00147 protected:
00148 int mType;
00149 int mButton;
00150 int mTimeStamp;
00151 };
00152 }
00153
00154 #endif // end GCN_MOUSEINPUT_HPP