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