# HG changeset patch # User Edgar Simo # Date 1217442595 0 # Node ID 42b682e8554637ec16a30d457bd79270d41101d7 # Parent c38ac77ea28f23509ebe9ada27d585efedac8596 Allow effects with no axes. diff -r c38ac77ea28f -r 42b682e85546 src/haptic/darwin/SDL_syshaptic.c --- a/src/haptic/darwin/SDL_syshaptic.c Wed Jul 30 18:22:45 2008 +0000 +++ b/src/haptic/darwin/SDL_syshaptic.c Wed Jul 30 18:29:55 2008 +0000 @@ -541,6 +541,7 @@ /* Handle no axes a part. */ if (naxes == 0) { + effect->dwFlags |= FFEFF_SPHERICAL; /* Set as default. */ effect->rglDirection = NULL; return 0; }