Move HID stuff into both OSX builds. Add preliminary joystick for OSX
[wxWidgets.git] / src / mac / carbon / joystick.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: joystick.cpp
3 // Purpose: wxJoystick class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "joystick.h"
14 #endif
15
16 #include "wx/wxprec.h"
17
18 #if wxUSE_JOYSTICK
19
20 #if !defined (__WXMAC_OSX__)
21
22 #include "wx/joystick.h"
23
24 IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
25
26 // Attributes
27 ////////////////////////////////////////////////////////////////////////////
28
29 wxPoint wxJoystick::GetPosition() const
30 {
31 // TODO
32 return wxPoint(0, 0);
33 }
34
35 int wxJoystick::GetZPosition() const
36 {
37 // TODO
38 return 0;
39 }
40
41 int wxJoystick::GetButtonState() const
42 {
43 // TODO
44 return 0;
45 }
46
47 int wxJoystick::GetPOVPosition() const
48 {
49 // TODO
50 return 0;
51 }
52
53 int wxJoystick::GetPOVCTSPosition() const
54 {
55 // TODO
56 return 0;
57 }
58
59 int wxJoystick::GetRudderPosition() const
60 {
61 // TODO
62 return 0;
63 }
64
65 int wxJoystick::GetUPosition() const
66 {
67 // TODO
68 return 0;
69 }
70
71 int wxJoystick::GetVPosition() const
72 {
73 // TODO
74 return 0;
75 }
76
77 int wxJoystick::GetMovementThreshold() const
78 {
79 // TODO
80 return 0;
81 }
82
83 void wxJoystick::SetMovementThreshold(int threshold)
84 {
85 // TODO
86 }
87
88 // Capabilities
89 ////////////////////////////////////////////////////////////////////////////
90
91 bool wxJoystick::IsOk() const
92 {
93 // TODO
94 return FALSE;
95 }
96
97 int wxJoystick::GetNumberJoysticks() const
98 {
99 // TODO
100 return 0;
101 }
102
103 int wxJoystick::GetManufacturerId() const
104 {
105 // TODO
106 return 0;
107 }
108
109 int wxJoystick::GetProductId() const
110 {
111 // TODO
112 return 0;
113 }
114
115 wxString wxJoystick::GetProductName() const
116 {
117 // TODO
118 return wxString(wxT(""));
119 }
120
121 int wxJoystick::GetXMin() const
122 {
123 // TODO
124 return 0;
125 }
126
127 int wxJoystick::GetYMin() const
128 {
129 // TODO
130 return 0;
131 }
132
133 int wxJoystick::GetZMin() const
134 {
135 // TODO
136 return 0;
137 }
138
139 int wxJoystick::GetXMax() const
140 {
141 // TODO
142 return 0;
143 }
144
145 int wxJoystick::GetYMax() const
146 {
147 // TODO
148 return 0;
149 }
150
151 int wxJoystick::GetZMax() const
152 {
153 // TODO
154 return 0;
155 }
156
157 int wxJoystick::GetNumberButtons() const
158 {
159 // TODO
160 return 0;
161 }
162
163 int wxJoystick::GetNumberAxes() const
164 {
165 // TODO
166 return 0;
167 }
168
169 int wxJoystick::GetMaxButtons() const
170 {
171 // TODO
172 return 0;
173 }
174
175 int wxJoystick::GetMaxAxes() const
176 {
177 // TODO
178 return 0;
179 }
180
181 int wxJoystick::GetPollingMin() const
182 {
183 // TODO
184 return 0;
185 }
186
187 int wxJoystick::GetPollingMax() const
188 {
189 // TODO
190 return 0;
191 }
192
193 int wxJoystick::GetRudderMin() const
194 {
195 // TODO
196 return 0;
197 }
198
199 int wxJoystick::GetRudderMax() const
200 {
201 // TODO
202 return 0;
203 }
204
205 int wxJoystick::GetUMin() const
206 {
207 // TODO
208 return 0;
209 }
210
211 int wxJoystick::GetUMax() const
212 {
213 // TODO
214 return 0;
215 }
216
217 int wxJoystick::GetVMin() const
218 {
219 // TODO
220 return 0;
221 }
222
223 int wxJoystick::GetVMax() const
224 {
225 // TODO
226 return 0;
227 }
228
229 bool wxJoystick::HasRudder() const
230 {
231 // TODO
232 return FALSE;
233 }
234
235 bool wxJoystick::HasZ() const
236 {
237 // TODO
238 return FALSE;
239 }
240
241 bool wxJoystick::HasU() const
242 {
243 // TODO
244 return FALSE;
245 }
246
247 bool wxJoystick::HasV() const
248 {
249 // TODO
250 return FALSE;
251 }
252
253 bool wxJoystick::HasPOV() const
254 {
255 // TODO
256 return FALSE;
257 }
258
259 bool wxJoystick::HasPOV4Dir() const
260 {
261 // TODO
262 return FALSE;
263 }
264
265 bool wxJoystick::HasPOVCTS() const
266 {
267 // TODO
268 return FALSE;
269 }
270
271 // Operations
272 ////////////////////////////////////////////////////////////////////////////
273
274 bool wxJoystick::SetCapture(wxWindow* win, int pollingFreq)
275 {
276 // TODO
277 return FALSE;
278 }
279
280 bool wxJoystick::ReleaseCapture()
281 {
282 // TODO
283 return FALSE;
284 }
285
286 #endif
287 // !OSX
288 #endif
289 // wxUSE_JOYSTICK
290