diff src/haptic/win32/SDL_syshaptic.c @ 2599:e9641d2250e5 gsoc2008_force_feedback

With no axes use spherical direction by default.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 11:14:16 +0000
parents 5b8f8151e66d
children d1140f0ebedf
line wrap: on
line diff
--- a/src/haptic/win32/SDL_syshaptic.c	Tue Aug 05 11:08:59 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Tue Aug 05 11:14:16 2008 +0000
@@ -513,6 +513,7 @@
 
    /* Handle no axes a part. */
    if (naxes == 0) {
+      effect->dwFlags |= DIEFF_SPHERICAL; /* Set as default. */
       effect->rglDirection = NULL;
       return 0;
    }