1 /* 2 * Copyright 2002, Marcus Overhagen. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #include <Joystick.h> 7 8 BJoystick::BJoystick() 9 { 10 } 11 12 13 BJoystick::~BJoystick() 14 { 15 } 16 17 18 status_t 19 BJoystick::Open(const char *portName) 20 { 21 return B_ERROR; 22 } 23 24 25 status_t 26 BJoystick::Open(const char *portName, 27 bool enter_enhanced) 28 { 29 return B_ERROR; 30 } 31 32 33 void 34 BJoystick::Close(void) 35 { 36 } 37 38 39 status_t 40 BJoystick::Update(void) 41 { 42 return B_ERROR; 43 } 44 45 46 status_t 47 BJoystick::SetMaxLatency(bigtime_t max_latency) 48 { 49 return B_ERROR; 50 } 51 52 53 int32 54 BJoystick::CountDevices() 55 { 56 return 0; 57 } 58 59 60 status_t 61 BJoystick::GetDeviceName(int32 n, 62 char *name, 63 size_t bufSize) 64 { 65 return B_ERROR; 66 } 67 68 69 bool 70 BJoystick::EnterEnhancedMode(const entry_ref *ref) 71 { 72 return false; 73 } 74 75 76 int32 77 BJoystick::CountSticks() 78 { 79 return 0; 80 } 81 82 83 int32 84 BJoystick::CountAxes() 85 { 86 return 0; 87 } 88 89 90 int32 91 BJoystick::CountHats() 92 { 93 return 0; 94 } 95 96 97 int32 98 BJoystick::CountButtons() 99 { 100 return 0; 101 } 102 103 104 status_t 105 BJoystick::GetAxisValues(int16 *out_values, 106 int32 for_stick) 107 { 108 return B_ERROR; 109 } 110 111 112 status_t 113 BJoystick::GetHatValues(uint8 *out_hats, 114 int32 for_stick) 115 { 116 return B_ERROR; 117 } 118 119 120 uint32 121 BJoystick::ButtonValues(int32 for_stick) 122 { 123 return 0; 124 } 125 126 127 status_t 128 BJoystick::GetAxisNameAt(int32 index, 129 BString *out_name) 130 { 131 return B_ERROR; 132 } 133 134 135 status_t 136 BJoystick::GetHatNameAt(int32 index, 137 BString *out_name) 138 { 139 return B_ERROR; 140 } 141 142 143 status_t 144 BJoystick::GetButtonNameAt(int32 index, 145 BString *out_name) 146 { 147 return B_ERROR; 148 } 149 150 151 status_t 152 BJoystick::GetControllerModule(BString *out_name) 153 { 154 return B_ERROR; 155 } 156 157 158 status_t 159 BJoystick::GetControllerName(BString *out_name) 160 { 161 return B_ERROR; 162 } 163 164 165 bool 166 BJoystick::IsCalibrationEnabled() 167 { 168 return false; 169 } 170 171 172 status_t 173 BJoystick::EnableCalibration(bool calibrates) 174 { 175 return false; 176 } 177 178 179 void 180 BJoystick::Calibrate(struct _extended_joystick *reading) 181 { 182 } 183 184 185 status_t 186 BJoystick::gather_enhanced_info(const entry_ref *ref) 187 { 188 return B_ERROR; 189 } 190 191 192 status_t 193 BJoystick::save_config(const entry_ref *ref) 194 { 195 return B_ERROR; 196 } 197 198 199 void 200 BJoystick::_ReservedJoystick1() 201 { 202 } 203 204 205 void 206 BJoystick::_ReservedJoystick2() 207 { 208 } 209 210 211 void 212 BJoystick::_ReservedJoystick3() 213 { 214 } 215 216 217 status_t 218 BJoystick::_Reserved_Joystick_4(void *, ...) 219 { 220 return B_ERROR; 221 } 222 223 224 status_t 225 BJoystick::_Reserved_Joystick_5(void *, ...) 226 { 227 return B_ERROR; 228 } 229 230 231 status_t 232 BJoystick::_Reserved_Joystick_6(void *, ...) 233 { 234 return B_ERROR; 235 } 236 237 238