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