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 2559 42b682e85546
parent 2558 c38ac77ea28f
child 2560 2274406ba792
Allow effects with no axes.
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;
    }