Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Allow effects with no axes.

  • Loading branch information
bobbens committed Jul 30, 2008
1 parent 586e913 commit 6a99ab9c35c1f905e2be7f4f3cb756f80255ad49
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/haptic/darwin/SDL_syshaptic.c
@@ -541,6 +541,7 @@ SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int naxes )

/* Handle no axes a part. */
if (naxes == 0) {
effect->dwFlags |= FFEFF_SPHERICAL; /* Set as default. */
effect->rglDirection = NULL;
return 0;
}

0 comments on commit 6a99ab9

Please sign in to comment.