Added FFEFF_OBJECTOFFSETS to darwin port. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Tue, 05 Aug 2008 18:52:22 +0000
branchgsoc2008_force_feedback
changeset 2610 71a835ee438a
parent 2609 eec0c81ede06
child 2611 cdea9a70dade
Added FFEFF_OBJECTOFFSETS to darwin port.
src/haptic/darwin/SDL_syshaptic.c
--- a/src/haptic/darwin/SDL_syshaptic.c	Tue Aug 05 18:26:11 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Tue Aug 05 18:52:22 2008 +0000
@@ -602,6 +602,7 @@
    dest->dwSize = sizeof(FFEFFECT); /* Set the structure size. */
    dest->dwSamplePeriod = 0; /* Not used by us. */
    dest->dwGain = 10000; /* Gain is set globally, not locally. */
+   dest->dwFlags = FFEFF_OBJECTOFFSETS; /* Seems obligatory. */
 
    /* Envelope. */
    envelope = SDL_malloc( sizeof(FFENVELOPE) );