1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxJoystick class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/string.h"
15 #include "wx/os2/private.h"
17 #define NO_JOYGETPOSEX
19 #include <wx/window.h>
20 #include <wx/joystick.h>
22 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
25 ////////////////////////////////////////////////////////////////////////////
27 wxPoint wxJoystick
::GetPosition() const
33 int wxJoystick
::GetZPosition() const
39 int wxJoystick
::GetButtonState() const
45 int wxJoystick
::GetPOVPosition() const
51 int wxJoystick
::GetPOVCTSPosition() const
57 int wxJoystick
::GetRudderPosition() const
63 int wxJoystick
::GetUPosition() const
69 int wxJoystick
::GetVPosition() const
75 int wxJoystick
::GetMovementThreshold() const
81 void wxJoystick
::SetMovementThreshold(int threshold
)
87 ////////////////////////////////////////////////////////////////////////////
89 bool wxJoystick
::IsOk() const
95 int wxJoystick
::GetNumberJoysticks() const
101 int wxJoystick
::GetManufacturerId() const
107 int wxJoystick
::GetProductId() const
113 wxString wxJoystick
::GetProductName() const
119 int wxJoystick
::GetXMin() const
125 int wxJoystick
::GetYMin() const
131 int wxJoystick
::GetZMin() const
137 int wxJoystick
::GetXMax() const
143 int wxJoystick
::GetYMax() const
149 int wxJoystick
::GetZMax() const
155 int wxJoystick
::GetNumberButtons() const
161 int wxJoystick
::GetNumberAxes() const
167 int wxJoystick
::GetMaxButtons() const
173 int wxJoystick
::GetMaxAxes() const
179 int wxJoystick
::GetPollingMin() const
185 int wxJoystick
::GetPollingMax() const
191 int wxJoystick
::GetRudderMin() const
197 int wxJoystick
::GetRudderMax() const
203 int wxJoystick
::GetUMin() const
209 int wxJoystick
::GetUMax() const
215 int wxJoystick
::GetVMin() const
221 int wxJoystick
::GetVMax() const
227 bool wxJoystick
::HasRudder() const
233 bool wxJoystick
::HasZ() const
239 bool wxJoystick
::HasU() const
245 bool wxJoystick
::HasV() const
251 bool wxJoystick
::HasPOV() const
257 bool wxJoystick
::HasPOV4Dir() const
263 bool wxJoystick
::HasPOVCTS() const
270 ////////////////////////////////////////////////////////////////////////////
272 bool wxJoystick
::SetCapture(wxWindow
* win
, int pollingFreq
)
278 bool wxJoystick
::ReleaseCapture()