comparison 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
comparison
equal deleted inserted replaced
2599:e9641d2250e5 2600:d1140f0ebedf
575 /* Set global stuff. */ 575 /* Set global stuff. */
576 SDL_memset(dest, 0, sizeof(DIEFFECT)); 576 SDL_memset(dest, 0, sizeof(DIEFFECT));
577 dest->dwSize = sizeof(DIEFFECT); /* Set the structure size. */ 577 dest->dwSize = sizeof(DIEFFECT); /* Set the structure size. */
578 dest->dwSamplePeriod = 0; /* Not used by us. */ 578 dest->dwSamplePeriod = 0; /* Not used by us. */
579 dest->dwGain = 10000; /* Gain is set globally, not locally. */ 579 dest->dwGain = 10000; /* Gain is set globally, not locally. */
580 dest->dwFlags = DIEFF_OBJECTOFFSETS; /* Seems obligatory. */
580 581
581 /* Envelope. */ 582 /* Envelope. */
582 envelope = SDL_malloc( sizeof(DIENVELOPE) ); 583 envelope = SDL_malloc( sizeof(DIENVELOPE) );
583 if (envelope == NULL) { 584 if (envelope == NULL) {
584 SDL_OutOfMemory(); 585 SDL_OutOfMemory();