]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/joystick.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxJoystick class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/string.h"
19 #include "wx/os2/private.h"
21 #define NO_JOYGETPOSEX
23 #include <wx/window.h>
24 #include <wx/joystick.h>
26 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
29 ////////////////////////////////////////////////////////////////////////////
31 wxPoint
wxJoystick::GetPosition() const
37 int wxJoystick::GetZPosition() const
43 int wxJoystick::GetButtonState() const
49 int wxJoystick::GetPOVPosition() const
55 int wxJoystick::GetPOVCTSPosition() const
61 int wxJoystick::GetRudderPosition() const
67 int wxJoystick::GetUPosition() const
73 int wxJoystick::GetVPosition() const
79 int wxJoystick::GetMovementThreshold() const
85 void wxJoystick::SetMovementThreshold(int threshold
)
91 ////////////////////////////////////////////////////////////////////////////
93 bool wxJoystick::IsOk() const
99 int wxJoystick::GetNumberJoysticks() const
105 int wxJoystick::GetManufacturerId() const
111 int wxJoystick::GetProductId() const
117 wxString
wxJoystick::GetProductName() const
123 int wxJoystick::GetXMin() const
129 int wxJoystick::GetYMin() const
135 int wxJoystick::GetZMin() const
141 int wxJoystick::GetXMax() const
147 int wxJoystick::GetYMax() const
153 int wxJoystick::GetZMax() const
159 int wxJoystick::GetNumberButtons() const
165 int wxJoystick::GetNumberAxes() const
171 int wxJoystick::GetMaxButtons() const
177 int wxJoystick::GetMaxAxes() const
183 int wxJoystick::GetPollingMin() const
189 int wxJoystick::GetPollingMax() const
195 int wxJoystick::GetRudderMin() const
201 int wxJoystick::GetRudderMax() const
207 int wxJoystick::GetUMin() const
213 int wxJoystick::GetUMax() const
219 int wxJoystick::GetVMin() const
225 int wxJoystick::GetVMax() const
231 bool wxJoystick::HasRudder() const
237 bool wxJoystick::HasZ() const
243 bool wxJoystick::HasU() const
249 bool wxJoystick::HasV() const
255 bool wxJoystick::HasPOV() const
261 bool wxJoystick::HasPOV4Dir() const
267 bool wxJoystick::HasPOVCTS() const
274 ////////////////////////////////////////////////////////////////////////////
276 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
282 bool wxJoystick::ReleaseCapture()
287 #endif // wxUSE_JOYSTICK