Allow effects with no axes. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Wed, 30 Jul 2008 18:29:55 +0000
branchgsoc2008_force_feedback
changeset 255942b682e85546
parent 2558 c38ac77ea28f
child 2560 2274406ba792
Allow effects with no axes.
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 18:22:45 2008 +0000
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Jul 30 18:29:55 2008 +0000
     1.3 @@ -541,6 +541,7 @@
     1.4  
     1.5     /* Handle no axes a part. */
     1.6     if (naxes == 0) {
     1.7 +      effect->dwFlags |= FFEFF_SPHERICAL; /* Set as default. */
     1.8        effect->rglDirection = NULL;
     1.9        return 0;
    1.10     }