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