]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/joystick.cpp
528e6dc40852a2b364e487106a1a63e96a20cc81
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::GetPosition(unsigned axis
) const
44 bool wxJoystick::GetButtonState(unsigned id
) const
50 int wxJoystick::GetZPosition() const
55 int wxJoystick::GetButtonState() const
60 int wxJoystick::GetPOVPosition() const
65 int wxJoystick::GetPOVCTSPosition() const
70 int wxJoystick::GetRudderPosition() const
75 int wxJoystick::GetUPosition() const
80 int wxJoystick::GetVPosition() const
85 int wxJoystick::GetMovementThreshold() const
90 void wxJoystick::SetMovementThreshold(int threshold
)
95 ////////////////////////////////////////////////////////////////////////////
97 int wxJoystick::GetNumberJoysticks()
102 bool wxJoystick::IsOk() const
107 int wxJoystick::GetManufacturerId() const
112 int wxJoystick::GetProductId() const
117 wxString
wxJoystick::GetProductName() const
119 return wxEmptyString
;
122 int wxJoystick::GetXMin() const
127 int wxJoystick::GetYMin() const
132 int wxJoystick::GetZMin() const
137 int wxJoystick::GetXMax() const
142 int wxJoystick::GetYMax() const
147 int wxJoystick::GetZMax() const
152 int wxJoystick::GetNumberButtons() const
157 int wxJoystick::GetNumberAxes() const
162 int wxJoystick::GetMaxButtons() const
167 int wxJoystick::GetMaxAxes() const
172 int wxJoystick::GetPollingMin() const
177 int wxJoystick::GetPollingMax() const
182 int wxJoystick::GetRudderMin() const
187 int wxJoystick::GetRudderMax() const
192 int wxJoystick::GetUMin() const
197 int wxJoystick::GetUMax() const
202 int wxJoystick::GetVMin() const
207 int wxJoystick::GetVMax() const
213 bool wxJoystick::HasRudder() const
218 bool wxJoystick::HasZ() const
223 bool wxJoystick::HasU() const
228 bool wxJoystick::HasV() const
233 bool wxJoystick::HasPOV() const
238 bool wxJoystick::HasPOV4Dir() const
243 bool wxJoystick::HasPOVCTS() const
249 ////////////////////////////////////////////////////////////////////////////
251 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
256 bool wxJoystick::ReleaseCapture()
261 #endif // wxUSE_JOYSTICK