]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/joystick.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxJoystick class
4 // Author: William Osborne
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"
26 #if !defined(__WIN32__) && !defined(_MMRESULT_)
27 typedef UINT MMRESULT
;
30 #include "wx/window.h"
31 #include "wx/palmos/joystick.h"
33 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
36 ////////////////////////////////////////////////////////////////////////////
38 wxJoystick::wxJoystick(int joystick
)
42 wxPoint
wxJoystick::GetPosition() const
47 int wxJoystick::GetZPosition() const
52 int wxJoystick::GetButtonState() const
57 int wxJoystick::GetPOVPosition() const
62 int wxJoystick::GetPOVCTSPosition() const
67 int wxJoystick::GetRudderPosition() const
72 int wxJoystick::GetUPosition() const
77 int wxJoystick::GetVPosition() const
82 int wxJoystick::GetMovementThreshold() const
87 void wxJoystick::SetMovementThreshold(int threshold
)
92 ////////////////////////////////////////////////////////////////////////////
94 int wxJoystick::GetNumberJoysticks()
99 bool wxJoystick::IsOk() const
104 int wxJoystick::GetManufacturerId() const
109 int wxJoystick::GetProductId() const
114 wxString
wxJoystick::GetProductName() const
119 int wxJoystick::GetXMin() const
124 int wxJoystick::GetYMin() const
129 int wxJoystick::GetZMin() const
134 int wxJoystick::GetXMax() const
139 int wxJoystick::GetYMax() const
144 int wxJoystick::GetZMax() const
149 int wxJoystick::GetNumberButtons() const
154 int wxJoystick::GetNumberAxes() const
159 int wxJoystick::GetMaxButtons() const
164 int wxJoystick::GetMaxAxes() const
169 int wxJoystick::GetPollingMin() const
174 int wxJoystick::GetPollingMax() const
179 int wxJoystick::GetRudderMin() const
184 int wxJoystick::GetRudderMax() const
189 int wxJoystick::GetUMin() const
194 int wxJoystick::GetUMax() const
199 int wxJoystick::GetVMin() const
204 int wxJoystick::GetVMax() const
210 bool wxJoystick::HasRudder() const
215 bool wxJoystick::HasZ() const
220 bool wxJoystick::HasU() const
225 bool wxJoystick::HasV() const
230 bool wxJoystick::HasPOV() const
235 bool wxJoystick::HasPOV4Dir() const
240 bool wxJoystick::HasPOVCTS() const
246 ////////////////////////////////////////////////////////////////////////////
248 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
253 bool wxJoystick::ReleaseCapture()