diff src/haptic/win32/SDL_syshaptic.c @ 2600:d1140f0ebedf gsoc2008_force_feedback

Using DIEFF_OBJECTOFFSETS now that seems obligatory.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 11:21:21 +0000
parents e9641d2250e5
children 4915cd01d0e7
line wrap: on
line diff
--- a/src/haptic/win32/SDL_syshaptic.c	Tue Aug 05 11:14:16 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Tue Aug 05 11:21:21 2008 +0000
@@ -577,6 +577,7 @@
    dest->dwSize = sizeof(DIEFFECT); /* Set the structure size. */
    dest->dwSamplePeriod = 0; /* Not used by us. */
    dest->dwGain = 10000; /* Gain is set globally, not locally. */
+   dest->dwFlags = DIEFF_OBJECTOFFSETS; /* Seems obligatory. */
 
    /* Envelope. */
    envelope = SDL_malloc( sizeof(DIENVELOPE) );