comparison src/haptic/darwin/SDL_syshaptic.c @ 2528:50414589501e gsoc2008_force_feedback

Fixed some typos.
author Edgar Simo <bobbens@gmail.com>
date Fri, 18 Jul 2008 08:06:06 +0000
parents 924a32719b6f
children e1d5d16e88a8
comparison
equal deleted inserted replaced
2527:924a32719b6f 2528:50414589501e
181 SDL_SetError("Haptic: Unable to get if device supports autocenter."); 181 SDL_SetError("Haptic: Unable to get if device supports autocenter.");
182 return 0; 182 return 0;
183 } 183 }
184 184
185 /* Check for axes, we have an artificial limit on axes */ 185 /* Check for axes, we have an artificial limit on axes */
186 *axes = ((features.numFfAxes) > 3) ? 186 *naxes = ((features.numFfAxes) > 3) ?
187 3 : features.numFfAxes; 187 3 : features.numFfAxes;
188 188
189 /* Always supported features. */ 189 /* Always supported features. */
190 supported |= SDL_HAPTIC_STATUS; 190 supported |= SDL_HAPTIC_STATUS;
191 return supported; 191 return supported;
280 * Checks to see if the haptic device and joystick and in reality the same. 280 * Checks to see if the haptic device and joystick and in reality the same.
281 */ 281 */
282 int 282 int
283 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) 283 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
284 { 284 {
285 if (SDL_strcmp(joystick->name,haptic->name)==0) {
286 return 1;
287 }
288 return 0; 285 return 0;
289 } 286 }
290 287
291 288
292 /* 289 /*
347 SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int axes ) 344 SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int axes )
348 { 345 {
349 LONG *rglDir; 346 LONG *rglDir;
350 347
351 /* Handle no axes a part. */ 348 /* Handle no axes a part. */
352 if (dest->cAxes == 0) { 349 if (naxes == 0) {
353 effect->rglDirection = NULL; 350 effect->rglDirection = NULL;
354 return 0; 351 return 0;
355 } 352 }
356 353
357 /* Has axes. */ 354 /* Has axes. */