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