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