1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/joystick.cpp
3 // Purpose: wxJoystick class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
17 #include "wx/joystick.h"
20 #include "wx/string.h"
21 #include "wx/window.h"
26 #include "wx/os2/private.h"
28 #define NO_JOYGETPOSEX
30 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
33 ////////////////////////////////////////////////////////////////////////////
35 wxPoint wxJoystick
::GetPosition() const
41 int wxJoystick
::GetZPosition() const
47 int wxJoystick
::GetButtonState() const
53 int wxJoystick
::GetPOVPosition() const
59 int wxJoystick
::GetPOVCTSPosition() const
65 int wxJoystick
::GetRudderPosition() const
71 int wxJoystick
::GetUPosition() const
77 int wxJoystick
::GetVPosition() const
83 int wxJoystick
::GetMovementThreshold() const
89 void wxJoystick
::SetMovementThreshold(int WXUNUSED(threshold
))
95 ////////////////////////////////////////////////////////////////////////////
97 bool wxJoystick
::IsOk() const
103 int wxJoystick
::GetNumberJoysticks()
109 int wxJoystick
::GetManufacturerId() const
115 int wxJoystick
::GetProductId() const
121 wxString wxJoystick
::GetProductName() const
124 return wxEmptyString
;
127 int wxJoystick
::GetXMin() const
133 int wxJoystick
::GetYMin() const
139 int wxJoystick
::GetZMin() const
145 int wxJoystick
::GetXMax() const
151 int wxJoystick
::GetYMax() const
157 int wxJoystick
::GetZMax() const
163 int wxJoystick
::GetNumberButtons() const
169 int wxJoystick
::GetNumberAxes() const
175 int wxJoystick
::GetMaxButtons() const
181 int wxJoystick
::GetMaxAxes() const
187 int wxJoystick
::GetPollingMin() const
193 int wxJoystick
::GetPollingMax() const
199 int wxJoystick
::GetRudderMin() const
205 int wxJoystick
::GetRudderMax() const
211 int wxJoystick
::GetUMin() const
217 int wxJoystick
::GetUMax() const
223 int wxJoystick
::GetVMin() const
229 int wxJoystick
::GetVMax() const
235 bool wxJoystick
::HasRudder() const
241 bool wxJoystick
::HasZ() const
247 bool wxJoystick
::HasU() const
253 bool wxJoystick
::HasV() const
259 bool wxJoystick
::HasPOV() const
265 bool wxJoystick
::HasPOV4Dir() const
271 bool wxJoystick
::HasPOVCTS() const
278 ////////////////////////////////////////////////////////////////////////////
280 bool wxJoystick
::SetCapture(wxWindow
* WXUNUSED(win
), int WXUNUSED(pollingFreq
))
286 bool wxJoystick
::ReleaseCapture()
292 #endif // wxUSE_JOYSTICK