1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxJoystick class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
16 #if !defined (__WXMAC_OSX__)
18 #include "wx/joystick.h"
20 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
23 ////////////////////////////////////////////////////////////////////////////
25 wxPoint wxJoystick
::GetPosition() const
31 int wxJoystick
::GetZPosition() const
37 int wxJoystick
::GetButtonState() const
43 int wxJoystick
::GetPOVPosition() const
49 int wxJoystick
::GetPOVCTSPosition() const
55 int wxJoystick
::GetRudderPosition() const
61 int wxJoystick
::GetUPosition() const
67 int wxJoystick
::GetVPosition() const
73 int wxJoystick
::GetMovementThreshold() const
79 void wxJoystick
::SetMovementThreshold(int threshold
)
85 ////////////////////////////////////////////////////////////////////////////
87 bool wxJoystick
::IsOk() const
93 int wxJoystick
::GetNumberJoysticks()
99 int wxJoystick
::GetManufacturerId() const
105 int wxJoystick
::GetProductId() const
111 wxString wxJoystick
::GetProductName() const
114 return wxString(wxT(""));
117 int wxJoystick
::GetXMin() const
123 int wxJoystick
::GetYMin() const
129 int wxJoystick
::GetZMin() const
135 int wxJoystick
::GetXMax() const
141 int wxJoystick
::GetYMax() const
147 int wxJoystick
::GetZMax() const
153 int wxJoystick
::GetNumberButtons() const
159 int wxJoystick
::GetNumberAxes() const
165 int wxJoystick
::GetMaxButtons() const
171 int wxJoystick
::GetMaxAxes() const
177 int wxJoystick
::GetPollingMin() const
183 int wxJoystick
::GetPollingMax() const
189 int wxJoystick
::GetRudderMin() const
195 int wxJoystick
::GetRudderMax() const
201 int wxJoystick
::GetUMin() const
207 int wxJoystick
::GetUMax() const
213 int wxJoystick
::GetVMin() const
219 int wxJoystick
::GetVMax() const
225 bool wxJoystick
::HasRudder() const
231 bool wxJoystick
::HasZ() const
237 bool wxJoystick
::HasU() const
243 bool wxJoystick
::HasV() const
249 bool wxJoystick
::HasPOV() const
255 bool wxJoystick
::HasPOV4Dir() const
261 bool wxJoystick
::HasPOVCTS() const
268 ////////////////////////////////////////////////////////////////////////////
270 bool wxJoystick
::SetCapture(wxWindow
* win
, int pollingFreq
)
276 bool wxJoystick
::ReleaseCapture()