comparison src/haptic/SDL_syshaptic.h @ 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
comparison
equal deleted inserted replaced
2516:6da022b18314 2517:37c13c12c878
36 SDL_HapticEffect effect; /* The current event */ 36 SDL_HapticEffect effect; /* The current event */
37 struct haptic_hweffect *hweffect; /* The hardware behind the event */ 37 struct haptic_hweffect *hweffect; /* The hardware behind the event */
38 }; 38 };
39 39
40 /* 40 /*
41 * The real SDL_Haptic event. 41 * The real SDL_Haptic struct.
42 */ 42 */
43 struct _SDL_Haptic 43 struct _SDL_Haptic
44 { 44 {
45 Uint8 index; /* Stores index it is attached to */ 45 Uint8 index; /* Stores index it is attached to */
46 const char* name; /* Stores the name of the device */ 46 const char* name; /* Stores the name of the device */
137 * Runs the effect on the haptic device. 137 * Runs the effect on the haptic device.
138 * 138 *
139 * Returns 0 on success, -1 on error. 139 * Returns 0 on success, -1 on error.
140 */ 140 */
141 extern int SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, 141 extern int SDL_SYS_HapticRunEffect(SDL_Haptic * haptic,
142 struct haptic_effect * effect); 142 struct haptic_effect * effect,
143 int iterations);
143 144
144 /* 145 /*
145 * Stops the effect on the haptic device. 146 * Stops the effect on the haptic device.
146 * 147 *
147 * Returns 0 on success, -1 on error. 148 * Returns 0 on success, -1 on error.