With no axes use spherical direction by default. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Tue, 05 Aug 2008 11:14:16 +0000
branchgsoc2008_force_feedback
changeset 2599 e9641d2250e5
parent 2598 5b8f8151e66d
child 2600 d1140f0ebedf
With no axes use spherical direction by default.
src/haptic/win32/SDL_syshaptic.c
--- 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;
    }