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