Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/haptic/darwin/SDL_syshaptic.c Fri Jul 18 08:03:24 2008 +0000 +++ b/src/haptic/darwin/SDL_syshaptic.c Fri Jul 18 08:06:06 2008 +0000 @@ -183,7 +183,7 @@ } /* Check for axes, we have an artificial limit on axes */ - *axes = ((features.numFfAxes) > 3) ? + *naxes = ((features.numFfAxes) > 3) ? 3 : features.numFfAxes; /* Always supported features. */ @@ -282,9 +282,6 @@ int SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) { - if (SDL_strcmp(joystick->name,haptic->name)==0) { - return 1; - } return 0; } @@ -349,7 +346,7 @@ LONG *rglDir; /* Handle no axes a part. */ - if (dest->cAxes == 0) { + if (naxes == 0) { effect->rglDirection = NULL; return 0; }