src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2528 50414589501e
parent 2527 924a32719b6f
child 2529 e1d5d16e88a8
--- 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;
    }