1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxJoystick class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "joystick.h"
16 #include "wx/wxprec.h"
20 #if !defined (__WXMAC_OSX__)
22 #include "wx/joystick.h"
24 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
27 ////////////////////////////////////////////////////////////////////////////
29 wxPoint wxJoystick
::GetPosition() const
35 int wxJoystick
::GetZPosition() const
41 int wxJoystick
::GetButtonState() const
47 int wxJoystick
::GetPOVPosition() const
53 int wxJoystick
::GetPOVCTSPosition() const
59 int wxJoystick
::GetRudderPosition() const
65 int wxJoystick
::GetUPosition() const
71 int wxJoystick
::GetVPosition() const
77 int wxJoystick
::GetMovementThreshold() const
83 void wxJoystick
::SetMovementThreshold(int threshold
)
89 ////////////////////////////////////////////////////////////////////////////
91 bool wxJoystick
::IsOk() const
97 int wxJoystick
::GetNumberJoysticks() const
103 int wxJoystick
::GetManufacturerId() const
109 int wxJoystick
::GetProductId() const
115 wxString wxJoystick
::GetProductName() const
118 return wxString(wxT(""));
121 int wxJoystick
::GetXMin() const
127 int wxJoystick
::GetYMin() const
133 int wxJoystick
::GetZMin() const
139 int wxJoystick
::GetXMax() const
145 int wxJoystick
::GetYMax() const
151 int wxJoystick
::GetZMax() const
157 int wxJoystick
::GetNumberButtons() const
163 int wxJoystick
::GetNumberAxes() const
169 int wxJoystick
::GetMaxButtons() const
175 int wxJoystick
::GetMaxAxes() const
181 int wxJoystick
::GetPollingMin() const
187 int wxJoystick
::GetPollingMax() const
193 int wxJoystick
::GetRudderMin() const
199 int wxJoystick
::GetRudderMax() const
205 int wxJoystick
::GetUMin() const
211 int wxJoystick
::GetUMax() const
217 int wxJoystick
::GetVMin() const
223 int wxJoystick
::GetVMax() const
229 bool wxJoystick
::HasRudder() const
235 bool wxJoystick
::HasZ() const
241 bool wxJoystick
::HasU() const
247 bool wxJoystick
::HasV() const
253 bool wxJoystick
::HasPOV() const
259 bool wxJoystick
::HasPOV4Dir() const
265 bool wxJoystick
::HasPOVCTS() const
272 ////////////////////////////////////////////////////////////////////////////
274 bool wxJoystick
::SetCapture(wxWindow
* win
, int pollingFreq
)
280 bool wxJoystick
::ReleaseCapture()