]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "joystick.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
23 #include "wx/string.h"
24 #include "wx/window.h"
25 #include "wx/palmos/joystick.h"
27 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
30 ////////////////////////////////////////////////////////////////////////////
32 wxJoystick::wxJoystick(int joystick
)
36 wxPoint
wxJoystick::GetPosition() const
41 int wxJoystick::GetZPosition() const
46 int wxJoystick::GetButtonState() const
51 int wxJoystick::GetPOVPosition() const
56 int wxJoystick::GetPOVCTSPosition() const
61 int wxJoystick::GetRudderPosition() const
66 int wxJoystick::GetUPosition() const
71 int wxJoystick::GetVPosition() const
76 int wxJoystick::GetMovementThreshold() const
81 void wxJoystick::SetMovementThreshold(int threshold
)
86 ////////////////////////////////////////////////////////////////////////////
88 int wxJoystick::GetNumberJoysticks()
93 bool wxJoystick::IsOk() const
98 int wxJoystick::GetManufacturerId() const
103 int wxJoystick::GetProductId() const
108 wxString
wxJoystick::GetProductName() const
113 int wxJoystick::GetXMin() const
118 int wxJoystick::GetYMin() const
123 int wxJoystick::GetZMin() const
128 int wxJoystick::GetXMax() const
133 int wxJoystick::GetYMax() const
138 int wxJoystick::GetZMax() const
143 int wxJoystick::GetNumberButtons() const
148 int wxJoystick::GetNumberAxes() const
153 int wxJoystick::GetMaxButtons() const
158 int wxJoystick::GetMaxAxes() const
163 int wxJoystick::GetPollingMin() const
168 int wxJoystick::GetPollingMax() const
173 int wxJoystick::GetRudderMin() const
178 int wxJoystick::GetRudderMax() const
183 int wxJoystick::GetUMin() const
188 int wxJoystick::GetUMax() const
193 int wxJoystick::GetVMin() const
198 int wxJoystick::GetVMax() const
204 bool wxJoystick::HasRudder() const
209 bool wxJoystick::HasZ() const
214 bool wxJoystick::HasU() const
219 bool wxJoystick::HasV() const
224 bool wxJoystick::HasPOV() const
229 bool wxJoystick::HasPOV4Dir() const
234 bool wxJoystick::HasPOVCTS() const
240 ////////////////////////////////////////////////////////////////////////////
242 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
247 bool wxJoystick::ReleaseCapture()