]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/classic/joystick.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/mac/classic/joystick.cpp
3 // Purpose: wxJoystick class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
16 #include "wx/joystick.h"
18 IMPLEMENT_DYNAMIC_CLASS(wxJoystick
, wxObject
)
21 ////////////////////////////////////////////////////////////////////////////
23 wxPoint
wxJoystick::GetPosition() const
29 int wxJoystick::GetZPosition() const
35 int wxJoystick::GetButtonState() const
41 int wxJoystick::GetPOVPosition() const
47 int wxJoystick::GetPOVCTSPosition() const
53 int wxJoystick::GetRudderPosition() const
59 int wxJoystick::GetUPosition() const
65 int wxJoystick::GetVPosition() const
71 int wxJoystick::GetMovementThreshold() const
77 void wxJoystick::SetMovementThreshold(int threshold
)
83 ////////////////////////////////////////////////////////////////////////////
85 bool wxJoystick::IsOk() const
91 int wxJoystick::GetNumberJoysticks()
97 int wxJoystick::GetManufacturerId() const
103 int wxJoystick::GetProductId() const
109 wxString
wxJoystick::GetProductName() const
112 return wxEmptyString
;
115 int wxJoystick::GetXMin() const
121 int wxJoystick::GetYMin() const
127 int wxJoystick::GetZMin() const
133 int wxJoystick::GetXMax() const
139 int wxJoystick::GetYMax() const
145 int wxJoystick::GetZMax() const
151 int wxJoystick::GetNumberButtons() const
157 int wxJoystick::GetNumberAxes() const
163 int wxJoystick::GetMaxButtons() const
169 int wxJoystick::GetMaxAxes() const
175 int wxJoystick::GetPollingMin() const
181 int wxJoystick::GetPollingMax() const
187 int wxJoystick::GetRudderMin() const
193 int wxJoystick::GetRudderMax() const
199 int wxJoystick::GetUMin() const
205 int wxJoystick::GetUMax() const
211 int wxJoystick::GetVMin() const
217 int wxJoystick::GetVMax() const
223 bool wxJoystick::HasRudder() const
229 bool wxJoystick::HasZ() const
235 bool wxJoystick::HasU() const
241 bool wxJoystick::HasV() const
247 bool wxJoystick::HasPOV() const
253 bool wxJoystick::HasPOV4Dir() const
259 bool wxJoystick::HasPOVCTS() const
266 ////////////////////////////////////////////////////////////////////////////
268 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
274 bool wxJoystick::ReleaseCapture()