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