changeset 2559:42b682e85546 gsoc2008_force_feedback

Allow effects with no axes.
author Edgar Simo <bobbens@gmail.com>
date Wed, 30 Jul 2008 18:29:55 +0000
parents c38ac77ea28f
children 2274406ba792
files src/haptic/darwin/SDL_syshaptic.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
    }