src/haptic/SDL_haptic.c
changeset 7536 5b6e09ec3dd3
parent 7533 8f4447da4cfd
child 7621 5caa5fb3deb6
equal deleted inserted replaced
7535:c515121a3df7 7536:5b6e09ec3dd3
   528         return -1;
   528         return -1;
   529     }
   529     }
   530 
   530 
   531     SDL_memcpy(&haptic->effects[effect].effect, data,
   531     SDL_memcpy(&haptic->effects[effect].effect, data,
   532                sizeof(SDL_HapticEffect));
   532                sizeof(SDL_HapticEffect));
   533     return effect;
   533     return 0;
   534 }
   534 }
   535 
   535 
   536 
   536 
   537 /*
   537 /*
   538  * Runs the haptic effect on the device.
   538  * Runs the haptic effect on the device.