Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed some typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 18, 2008
1 parent b7da457 commit 9f36fd0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -183,7 +183,7 @@ GetSupportedFeatures(FFDeviceObjectReference device,
}

/* Check for axes, we have an artificial limit on axes */
*axes = ((features.numFfAxes) > 3) ?
*naxes = ((features.numFfAxes) > 3) ?
3 : features.numFfAxes;

/* Always supported features. */
Expand Down Expand Up @@ -282,9 +282,6 @@ SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
int
SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
{
if (SDL_strcmp(joystick->name,haptic->name)==0) {
return 1;
}
return 0;
}

Expand Down Expand Up @@ -349,7 +346,7 @@ SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int axes )
LONG *rglDir;

/* Handle no axes a part. */
if (dest->cAxes == 0) {
if (naxes == 0) {
effect->rglDirection = NULL;
return 0;
}
Expand Down

0 comments on commit 9f36fd0

Please sign in to comment.