]>
git.saurik.com Git - wxWidgets.git/blob - src/x11/joystick.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxJoystick class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "joystick.h"
16 // Not implemented in X11
19 #include "wx/joystick.h"
21 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
24 ////////////////////////////////////////////////////////////////////////////
26 wxPoint
wxJoystick::GetPosition() const
32 int wxJoystick::GetZPosition() const
38 int wxJoystick::GetButtonState() const
44 int wxJoystick::GetPOVPosition() const
50 int wxJoystick::GetPOVCTSPosition() const
56 int wxJoystick::GetRudderPosition() const
62 int wxJoystick::GetUPosition() const
68 int wxJoystick::GetVPosition() const
74 int wxJoystick::GetMovementThreshold() const
80 void wxJoystick::SetMovementThreshold(int threshold
)
86 ////////////////////////////////////////////////////////////////////////////
88 bool wxJoystick::IsOk() const
94 int wxJoystick::GetNumberJoysticks() const
100 int wxJoystick::GetManufacturerId() const
106 int wxJoystick::GetProductId() const
112 wxString
wxJoystick::GetProductName() const
118 int wxJoystick::GetXMin() const
124 int wxJoystick::GetYMin() const
130 int wxJoystick::GetZMin() const
136 int wxJoystick::GetXMax() const
142 int wxJoystick::GetYMax() const
148 int wxJoystick::GetZMax() const
154 int wxJoystick::GetNumberButtons() const
160 int wxJoystick::GetNumberAxes() const
166 int wxJoystick::GetMaxButtons() const
172 int wxJoystick::GetMaxAxes() const
178 int wxJoystick::GetPollingMin() const
184 int wxJoystick::GetPollingMax() const
190 int wxJoystick::GetRudderMin() const
196 int wxJoystick::GetRudderMax() const
202 int wxJoystick::GetUMin() const
208 int wxJoystick::GetUMax() const
214 int wxJoystick::GetVMin() const
220 int wxJoystick::GetVMax() const
226 bool wxJoystick::HasRudder() const
232 bool wxJoystick::HasZ() const
238 bool wxJoystick::HasU() const
244 bool wxJoystick::HasV() const
250 bool wxJoystick::HasPOV() const
256 bool wxJoystick::HasPOV4Dir() const
262 bool wxJoystick::HasPOVCTS() const
269 ////////////////////////////////////////////////////////////////////////////
271 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
277 bool wxJoystick::ReleaseCapture()