Go to the documentation of this file.00001
00002
00003 #ifndef _JOYSTICK_EVENT_H_
00004 #define _JOYSTICK_EVENT_H_
00005
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 #include <input/JoystickEventDefines.h>
00009 #include <input/InputEvent.h>
00010
00011 namespace input
00012 {
00013
00015 class ENGINE_PUBLIC_EXPORT JoystickEvent: public InputEvent
00016 {
00017 public:
00018
00020 JoystickEvent();
00021
00023 ~JoystickEvent();
00024
00065 void set(JoystickButton button,
00066 s32 axisX, s32 axisY, s32 axisZ, s32 axisRX, s32 axisRY, s32 axisRZ,
00067 s32 axisVX, s32 axisVY, s32 axisVZ, s32 axisVRX, s32 axisVRY, s32 axisVRZ,
00068 s32 axisAX, s32 axisAY, s32 axisAZ, s32 axisARX, s32 axisARY, s32 axisARZ,
00069 s32 axisFX, s32 axisFY, s32 axisFZ, s32 axisFRX, s32 axisFRY, s32 axisFRZ,
00070 s32 sliderX, s32 sliderY,
00071 s32 vsliderX, s32 vsliderY,
00072 s32 asliderX, s32 asliderY,
00073 s32 fsliderX, s32 fsliderY,
00074 PovDirection povDirection0, PovDirection povDirection1, PovDirection povDirection2, PovDirection povDirection3,
00075 InputDevice *source);
00076
00078 JoystickButton getButton() const;
00079
00081 s32 getAxisX() const;
00082
00084 s32 getAxisY() const;
00085
00087 s32 getAxisZ() const;
00088
00090 s32 getAxisRX() const;
00091
00093 s32 getAxisRY() const;
00094
00096 s32 getAxisRZ() const;
00097
00098
00100 s32 getAxisVX() const;
00101
00103 s32 getAxisVY() const;
00104
00106 s32 getAxisVZ() const;
00107
00109 s32 getAxisVRX() const;
00110
00112 s32 getAxisVRY() const;
00113
00115 s32 getAxisVRZ() const;
00116
00117
00119 s32 getAxisAX() const;
00120
00122 s32 getAxisAY() const;
00123
00125 s32 getAxisAZ() const;
00126
00128 s32 getAxisARX() const;
00129
00131 s32 getAxisARY() const;
00132
00134 s32 getAxisARZ() const;
00135
00136
00138 s32 getAxisFX() const;
00139
00141 s32 getAxisFY() const;
00142
00144 s32 getAxisFZ() const;
00145
00147 s32 getAxisFRX() const;
00148
00150 s32 getAxisFRY() const;
00151
00153 s32 getAxisFRZ() const;
00154
00155
00157 s32 getSliderX() const;
00158
00160 s32 getSliderY() const;
00161
00163 s32 getVSliderX() const;
00164
00166 s32 getVSliderY() const;
00167
00169 s32 getASliderX() const;
00170
00172 s32 getASliderY() const;
00173
00175 s32 getFSliderX() const;
00176
00178 s32 getFSliderY() const;
00179
00181 PovDirection getPovDirection0();
00182
00184 PovDirection getPovDirection1();
00185
00187 PovDirection getPovDirection2();
00188
00190 PovDirection getPovDirection3();
00191
00192 protected:
00193
00194 JoystickButton mButton;
00195
00196 s32 mAxisX;
00197 s32 mAxisY;
00198 s32 mAxisZ;
00199
00200 s32 mAxisRX;
00201 s32 mAxisRY;
00202 s32 mAxisRZ;
00203
00204 s32 mAxisVX;
00205 s32 mAxisVY;
00206 s32 mAxisVZ;
00207
00208 s32 mAxisVRX;
00209 s32 mAxisVRY;
00210 s32 mAxisVRZ;
00211
00212 s32 mAxisAX;
00213 s32 mAxisAY;
00214 s32 mAxisAZ;
00215
00216 s32 mAxisARX;
00217 s32 mAxisARY;
00218 s32 mAxisARZ;
00219
00220 s32 mAxisFX;
00221 s32 mAxisFY;
00222 s32 mAxisFZ;
00223
00224 s32 mAxisFRX;
00225 s32 mAxisFRY;
00226 s32 mAxisFRZ;
00227
00228 s32 mSliderX;
00229 s32 mSliderY;
00230
00231 s32 mVSliderX;
00232 s32 mVSliderY;
00233
00234 s32 mASliderX;
00235 s32 mASliderY;
00236
00237 s32 mFSliderX;
00238 s32 mFSliderY;
00239
00240 PovDirection mPovDirection0;
00241 PovDirection mPovDirection1;
00242 PovDirection mPovDirection2;
00243 PovDirection mPovDirection3;
00244 };
00245
00246 }
00247
00248 #endif