]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/joystick.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/joystick.cpp
3 // Purpose: wxJoystick class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
19 #include "wx/string.h"
20 #include "wx/window.h"
21 #include "wx/palmos/joystick.h"
23 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
26 ////////////////////////////////////////////////////////////////////////////
28 wxJoystick::wxJoystick(int joystick
)
32 wxPoint
wxJoystick::GetPosition() const
37 int wxJoystick::GetZPosition() const
42 int wxJoystick::GetButtonState() const
47 int wxJoystick::GetPOVPosition() const
52 int wxJoystick::GetPOVCTSPosition() const
57 int wxJoystick::GetRudderPosition() const
62 int wxJoystick::GetUPosition() const
67 int wxJoystick::GetVPosition() const
72 int wxJoystick::GetMovementThreshold() const
77 void wxJoystick::SetMovementThreshold(int threshold
)
82 ////////////////////////////////////////////////////////////////////////////
84 int wxJoystick::GetNumberJoysticks()
89 bool wxJoystick::IsOk() const
94 int wxJoystick::GetManufacturerId() const
99 int wxJoystick::GetProductId() const
104 wxString
wxJoystick::GetProductName() const
106 return wxEmptyString
;
109 int wxJoystick::GetXMin() const
114 int wxJoystick::GetYMin() const
119 int wxJoystick::GetZMin() const
124 int wxJoystick::GetXMax() const
129 int wxJoystick::GetYMax() const
134 int wxJoystick::GetZMax() const
139 int wxJoystick::GetNumberButtons() const
144 int wxJoystick::GetNumberAxes() const
149 int wxJoystick::GetMaxButtons() const
154 int wxJoystick::GetMaxAxes() const
159 int wxJoystick::GetPollingMin() const
164 int wxJoystick::GetPollingMax() const
169 int wxJoystick::GetRudderMin() const
174 int wxJoystick::GetRudderMax() const
179 int wxJoystick::GetUMin() const
184 int wxJoystick::GetUMax() const
189 int wxJoystick::GetVMin() const
194 int wxJoystick::GetVMax() const
200 bool wxJoystick::HasRudder() const
205 bool wxJoystick::HasZ() const
210 bool wxJoystick::HasU() const
215 bool wxJoystick::HasV() const
220 bool wxJoystick::HasPOV() const
225 bool wxJoystick::HasPOV4Dir() const
230 bool wxJoystick::HasPOVCTS() const
236 ////////////////////////////////////////////////////////////////////////////
238 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
243 bool wxJoystick::ReleaseCapture()