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