1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxJoystick class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 // For compilers that support precompilation, includes "wx.h".
15 #include "wx/wxprec.h"
21 #include "wx/string.h"
24 #include "wx/os2/private.h"
26 #define NO_JOYGETPOSEX
28 #include <wx/window.h>
29 #include <wx/joystick.h>
31 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
34 ////////////////////////////////////////////////////////////////////////////
36 wxPoint wxJoystick
::GetPosition() const
42 int wxJoystick
::GetZPosition() const
48 int wxJoystick
::GetButtonState() const
54 int wxJoystick
::GetPOVPosition() const
60 int wxJoystick
::GetPOVCTSPosition() const
66 int wxJoystick
::GetRudderPosition() const
72 int wxJoystick
::GetUPosition() const
78 int wxJoystick
::GetVPosition() const
84 int wxJoystick
::GetMovementThreshold() const
90 void wxJoystick
::SetMovementThreshold(int WXUNUSED(threshold
))
96 ////////////////////////////////////////////////////////////////////////////
98 bool wxJoystick
::IsOk() const
104 int wxJoystick
::GetNumberJoysticks() const
110 int wxJoystick
::GetManufacturerId() const
116 int wxJoystick
::GetProductId() const
122 wxString wxJoystick
::GetProductName() const
128 int wxJoystick
::GetXMin() const
134 int wxJoystick
::GetYMin() const
140 int wxJoystick
::GetZMin() const
146 int wxJoystick
::GetXMax() const
152 int wxJoystick
::GetYMax() const
158 int wxJoystick
::GetZMax() const
164 int wxJoystick
::GetNumberButtons() const
170 int wxJoystick
::GetNumberAxes() const
176 int wxJoystick
::GetMaxButtons() const
182 int wxJoystick
::GetMaxAxes() const
188 int wxJoystick
::GetPollingMin() const
194 int wxJoystick
::GetPollingMax() const
200 int wxJoystick
::GetRudderMin() const
206 int wxJoystick
::GetRudderMax() const
212 int wxJoystick
::GetUMin() const
218 int wxJoystick
::GetUMax() const
224 int wxJoystick
::GetVMin() const
230 int wxJoystick
::GetVMax() const
236 bool wxJoystick
::HasRudder() const
242 bool wxJoystick
::HasZ() const
248 bool wxJoystick
::HasU() const
254 bool wxJoystick
::HasV() const
260 bool wxJoystick
::HasPOV() const
266 bool wxJoystick
::HasPOV4Dir() const
272 bool wxJoystick
::HasPOVCTS() const
279 ////////////////////////////////////////////////////////////////////////////
281 bool wxJoystick
::SetCapture(wxWindow
* WXUNUSED(win
), int WXUNUSED(pollingFreq
))
287 bool wxJoystick
::ReleaseCapture()
292 #endif // wxUSE_JOYSTICK