]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/joystick.cpp
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::GetPosition(unsigned axis
) const
37 bool wxJoystick::GetButtonState(unsigned id
) const
43 int wxJoystick::GetZPosition() const
49 int wxJoystick::GetButtonState() const
55 int wxJoystick::GetPOVPosition() const
61 int wxJoystick::GetPOVCTSPosition() const
67 int wxJoystick::GetRudderPosition() const
73 int wxJoystick::GetUPosition() const
79 int wxJoystick::GetVPosition() const
85 int wxJoystick::GetMovementThreshold() const
91 void wxJoystick::SetMovementThreshold(int threshold
)
97 ////////////////////////////////////////////////////////////////////////////
99 bool wxJoystick::IsOk() const
105 int wxJoystick::GetNumberJoysticks()
111 int wxJoystick::GetManufacturerId() const
117 int wxJoystick::GetProductId() const
123 wxString
wxJoystick::GetProductName() const
126 return wxString(wxT(""));
129 int wxJoystick::GetXMin() const
135 int wxJoystick::GetYMin() const
141 int wxJoystick::GetZMin() const
147 int wxJoystick::GetXMax() const
153 int wxJoystick::GetYMax() const
159 int wxJoystick::GetZMax() const
165 int wxJoystick::GetNumberButtons() const
171 int wxJoystick::GetNumberAxes() const
177 int wxJoystick::GetMaxButtons() const
183 int wxJoystick::GetMaxAxes() const
189 int wxJoystick::GetPollingMin() const
195 int wxJoystick::GetPollingMax() const
201 int wxJoystick::GetRudderMin() const
207 int wxJoystick::GetRudderMax() const
213 int wxJoystick::GetUMin() const
219 int wxJoystick::GetUMax() const
225 int wxJoystick::GetVMin() const
231 int wxJoystick::GetVMax() const
237 bool wxJoystick::HasRudder() const
243 bool wxJoystick::HasZ() const
249 bool wxJoystick::HasU() const
255 bool wxJoystick::HasV() const
261 bool wxJoystick::HasPOV() const
267 bool wxJoystick::HasPOV4Dir() const
273 bool wxJoystick::HasPOVCTS() const
280 ////////////////////////////////////////////////////////////////////////////
282 bool wxJoystick::SetCapture(wxWindow
* win
, int pollingFreq
)
288 bool wxJoystick::ReleaseCapture()