1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/joystick.cpp
3 // Purpose: wxJoystick class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
16 #include "wx/joystick.h"
19 #include "wx/string.h"
20 #include "wx/window.h"
25 #include "wx/os2/private.h"
27 #define NO_JOYGETPOSEX
29 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
32 ////////////////////////////////////////////////////////////////////////////
34 wxPoint wxJoystick
::GetPosition() const
40 int wxJoystick
::GetZPosition() const
46 int wxJoystick
::GetButtonState() const
52 int wxJoystick
::GetPOVPosition() const
58 int wxJoystick
::GetPOVCTSPosition() const
64 int wxJoystick
::GetRudderPosition() const
70 int wxJoystick
::GetUPosition() const
76 int wxJoystick
::GetVPosition() const
82 int wxJoystick
::GetMovementThreshold() const
88 void wxJoystick
::SetMovementThreshold(int WXUNUSED(threshold
))
94 ////////////////////////////////////////////////////////////////////////////
96 bool wxJoystick
::IsOk() const
102 int wxJoystick
::GetNumberJoysticks()
108 int wxJoystick
::GetManufacturerId() const
114 int wxJoystick
::GetProductId() const
120 wxString wxJoystick
::GetProductName() const
123 return wxEmptyString
;
126 int wxJoystick
::GetXMin() const
132 int wxJoystick
::GetYMin() const
138 int wxJoystick
::GetZMin() const
144 int wxJoystick
::GetXMax() const
150 int wxJoystick
::GetYMax() const
156 int wxJoystick
::GetZMax() const
162 int wxJoystick
::GetNumberButtons() const
168 int wxJoystick
::GetNumberAxes() const
174 int wxJoystick
::GetMaxButtons() const
180 int wxJoystick
::GetMaxAxes() const
186 int wxJoystick
::GetPollingMin() const
192 int wxJoystick
::GetPollingMax() const
198 int wxJoystick
::GetRudderMin() const
204 int wxJoystick
::GetRudderMax() const
210 int wxJoystick
::GetUMin() const
216 int wxJoystick
::GetUMax() const
222 int wxJoystick
::GetVMin() const
228 int wxJoystick
::GetVMax() const
234 bool wxJoystick
::HasRudder() const
240 bool wxJoystick
::HasZ() const
246 bool wxJoystick
::HasU() const
252 bool wxJoystick
::HasV() const
258 bool wxJoystick
::HasPOV() const
264 bool wxJoystick
::HasPOV4Dir() const
270 bool wxJoystick
::HasPOVCTS() const
277 ////////////////////////////////////////////////////////////////////////////
279 bool wxJoystick
::SetCapture(wxWindow
* WXUNUSED(win
), int WXUNUSED(pollingFreq
))
285 bool wxJoystick
::ReleaseCapture()
291 #endif // wxUSE_JOYSTICK