]>
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"
17 #include "wx/joystick.h"
20 #include "wx/string.h"
21 #include "wx/window.h"
24 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
27 ////////////////////////////////////////////////////////////////////////////
29 wxJoystick::wxJoystick(int joystick
)
33 wxPoint
wxJoystick::GetPosition() const
38 int wxJoystick::GetZPosition() const
43 int wxJoystick::GetButtonState() const
48 int wxJoystick::GetPOVPosition() const
53 int wxJoystick::GetPOVCTSPosition() const
58 int wxJoystick::GetRudderPosition() const
63 int wxJoystick::GetUPosition() const
68 int wxJoystick::GetVPosition() const
73 int wxJoystick::GetMovementThreshold() const
78 void wxJoystick::SetMovementThreshold(int threshold
)
83 ////////////////////////////////////////////////////////////////////////////
85 int wxJoystick::GetNumberJoysticks()
90 bool wxJoystick::IsOk() const
95 int wxJoystick::GetManufacturerId() const
100 int wxJoystick::GetProductId() const
105 wxString
wxJoystick::GetProductName() const
107 return wxEmptyString
;
110 int wxJoystick::GetXMin() const
115 int wxJoystick::GetYMin() const
120 int wxJoystick::GetZMin() const
125 int wxJoystick::GetXMax() const
130 int wxJoystick::GetYMax() const
135 int wxJoystick::GetZMax() const
140 int wxJoystick::GetNumberButtons() const
145 int wxJoystick::GetNumberAxes() const
150 int wxJoystick::GetMaxButtons() const
155 int wxJoystick::GetMaxAxes() const
160 int wxJoystick::GetPollingMin() const
165 int wxJoystick::GetPollingMax() const
170 int wxJoystick::GetRudderMin() const
175 int wxJoystick::GetRudderMax() const
180 int wxJoystick::GetUMin() const
185 int wxJoystick::GetUMax() const
190 int wxJoystick::GetVMin() const
195 int wxJoystick::GetVMax() const
201 bool wxJoystick::HasRudder() const
206 bool wxJoystick::HasZ() const
211 bool wxJoystick::HasU() const
216 bool wxJoystick::HasV() const
221 bool wxJoystick::HasPOV() const
226 bool wxJoystick::HasPOV4Dir() const
231 bool wxJoystick::HasPOVCTS() const
237 ////////////////////////////////////////////////////////////////////////////
239 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
244 bool wxJoystick::ReleaseCapture()
249 #endif // wxUSE_JOYSTICK