Mercurial > sdl-ios-xcode
comparison src/haptic/SDL_haptic.c @ 2519:af9df9662807 gsoc2008_force_feedback
More explicit with iterations and length.
Added spherical coordinates (not available on linux).
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 15 Jul 2008 15:53:48 +0000 |
parents | 37c13c12c878 |
children | 366d84fdf8d1 |
comparison
equal
deleted
inserted
replaced
2518:07a5b225b9c9 | 2519:af9df9662807 |
---|---|
468 | 468 |
469 /* | 469 /* |
470 * Runs the haptic effect on the device. | 470 * Runs the haptic effect on the device. |
471 */ | 471 */ |
472 int | 472 int |
473 SDL_HapticRunEffect(SDL_Haptic * haptic, int effect, int iterations) | 473 SDL_HapticRunEffect(SDL_Haptic * haptic, int effect, Uint32 iterations) |
474 { | 474 { |
475 if (!ValidHaptic(&haptic) || !ValidEffect(haptic,effect)) { | 475 if (!ValidHaptic(&haptic) || !ValidEffect(haptic,effect)) { |
476 return -1; | 476 return -1; |
477 } | 477 } |
478 | 478 |