comparison src/haptic/SDL_syshaptic.h @ 2495:66c02abeef0e gsoc2008_force_feedback

Added SDL_HapticGetEffectStatus(). More comments.
author Edgar Simo <bobbens@gmail.com>
date Thu, 03 Jul 2008 09:58:27 +0000
parents 10bc7aaf5114
children ef147ee4896c
comparison
equal deleted inserted replaced
2494:a72a5f62d6b7 2495:66c02abeef0e
143 */ 143 */
144 extern void SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, 144 extern void SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic,
145 struct haptic_effect * effect); 145 struct haptic_effect * effect);
146 146
147 /* 147 /*
148 * Queries the device for the status of effect.
149 *
150 * Returns 0 if device is stopped, >0 if device is playing and
151 * -1 on error.
152 */
153 extern int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic,
154 struct haptic_effect * effect);
155
156 /*
148 * Sets the global gain of the haptic device. 157 * Sets the global gain of the haptic device.
149 * 158 *
150 * Returns 0 on success, -1 on error. 159 * Returns 0 on success, -1 on error.
151 */ 160 */
152 extern int SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain); 161 extern int SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain);