src/haptic/SDL_syshaptic.h
branchgsoc2008_force_feedback
changeset 2495 66c02abeef0e
parent 2491 10bc7aaf5114
child 2512 ef147ee4896c
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);