comparison src/haptic/darwin/SDL_syshaptic.c @ 2610:71a835ee438a gsoc2008_force_feedback

Added FFEFF_OBJECTOFFSETS to darwin port.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 18:52:22 +0000
parents eec0c81ede06
children 265ced2079bd
comparison
equal deleted inserted replaced
2609:eec0c81ede06 2610:71a835ee438a
600 /* Set global stuff. */ 600 /* Set global stuff. */
601 SDL_memset(dest, 0, sizeof(FFEFFECT)); 601 SDL_memset(dest, 0, sizeof(FFEFFECT));
602 dest->dwSize = sizeof(FFEFFECT); /* Set the structure size. */ 602 dest->dwSize = sizeof(FFEFFECT); /* Set the structure size. */
603 dest->dwSamplePeriod = 0; /* Not used by us. */ 603 dest->dwSamplePeriod = 0; /* Not used by us. */
604 dest->dwGain = 10000; /* Gain is set globally, not locally. */ 604 dest->dwGain = 10000; /* Gain is set globally, not locally. */
605 dest->dwFlags = FFEFF_OBJECTOFFSETS; /* Seems obligatory. */
605 606
606 /* Envelope. */ 607 /* Envelope. */
607 envelope = SDL_malloc( sizeof(FFENVELOPE) ); 608 envelope = SDL_malloc( sizeof(FFENVELOPE) );
608 if (envelope == NULL) { 609 if (envelope == NULL) {
609 SDL_OutOfMemory(); 610 SDL_OutOfMemory();