include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2478 4fd783e0f34b
parent 2477 97f75ea43a93
child 2480 b883974445fc
equal deleted inserted replaced
2477:97f75ea43a93 2478:4fd783e0f34b
    98  * Closes a Haptic device previously opened with SDL_HapticOpen.
    98  * Closes a Haptic device previously opened with SDL_HapticOpen.
    99  */
    99  */
   100 extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic);
   100 extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic);
   101 
   101 
   102 /*
   102 /*
       
   103  * Returns the number of effects a haptic device can store.
       
   104  */
       
   105 extern DECLSPEC int SDL_HapticNumEffects(SDL_Haptic * haptic);
       
   106 
       
   107 /*
       
   108  * Returns the supported effects.  Individual effects can be queried by
       
   109  * bitwise operators.
       
   110  *
       
   111  * Example:  (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT)
       
   112  */
       
   113 extern DECLSPEC unsigned int SDL_HapticQueryEffects(SDL_Haptic * haptic);
       
   114 
       
   115 /*
   103  * Creates a new haptic effect on the device.
   116  * Creates a new haptic effect on the device.
   104  */
   117  */
   105 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect);
   118 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect);
   106 
   119 
   107 /*
   120 /*