Using DIEFF_OBJECTOFFSETS now that seems obligatory. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Tue, 05 Aug 2008 11:21:21 +0000
branchgsoc2008_force_feedback
changeset 2600 d1140f0ebedf
parent 2599 e9641d2250e5
child 2601 4915cd01d0e7
Using DIEFF_OBJECTOFFSETS now that seems obligatory.
src/haptic/win32/SDL_syshaptic.c
--- 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) );