Mercurial > sdl-ios-xcode
diff src/haptic/SDL_haptic.c @ 2517:37c13c12c878 gsoc2008_force_feedback
Broke API by introducing iterations to SDL_HapticRunEffects().
Fixed minor issues.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Thu, 10 Jul 2008 17:54:08 +0000 |
parents | 030fc4375e63 |
children | af9df9662807 |
line wrap: on
line diff
--- a/src/haptic/SDL_haptic.c Thu Jul 10 17:52:57 2008 +0000 +++ b/src/haptic/SDL_haptic.c Thu Jul 10 17:54:08 2008 +0000 @@ -470,14 +470,14 @@ * Runs the haptic effect on the device. */ int -SDL_HapticRunEffect(SDL_Haptic * haptic, int effect) +SDL_HapticRunEffect(SDL_Haptic * haptic, int effect, int iterations) { if (!ValidHaptic(&haptic) || !ValidEffect(haptic,effect)) { return -1; } /* Run the effect */ - if (SDL_SYS_HapticRunEffect(haptic,&haptic->effects[effect]) < 0) { + if (SDL_SYS_HapticRunEffect(haptic,&haptic->effects[effect], iterations) < 0) { return -1; }