include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2478 4fd783e0f34b
parent 2477 97f75ea43a93
child 2480 b883974445fc
     1.1 --- a/include/SDL_haptic.h	Mon Jun 30 16:48:16 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Mon Jun 30 17:28:34 2008 +0000
     1.3 @@ -100,6 +100,19 @@
     1.4  extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic);
     1.5  
     1.6  /*
     1.7 + * Returns the number of effects a haptic device can store.
     1.8 + */
     1.9 +extern DECLSPEC int SDL_HapticNumEffects(SDL_Haptic * haptic);
    1.10 +
    1.11 +/*
    1.12 + * Returns the supported effects.  Individual effects can be queried by
    1.13 + * bitwise operators.
    1.14 + *
    1.15 + * Example:  (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT)
    1.16 + */
    1.17 +extern DECLSPEC unsigned int SDL_HapticQueryEffects(SDL_Haptic * haptic);
    1.18 +
    1.19 +/*
    1.20   * Creates a new haptic effect on the device.
    1.21   */
    1.22  extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect);