diff -r 97f75ea43a93 -r 4fd783e0f34b include/SDL_haptic.h --- a/include/SDL_haptic.h Mon Jun 30 16:48:16 2008 +0000 +++ b/include/SDL_haptic.h Mon Jun 30 17:28:34 2008 +0000 @@ -100,6 +100,19 @@ extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic); /* + * Returns the number of effects a haptic device can store. + */ +extern DECLSPEC int SDL_HapticNumEffects(SDL_Haptic * haptic); + +/* + * Returns the supported effects. Individual effects can be queried by + * bitwise operators. + * + * Example: (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT) + */ +extern DECLSPEC unsigned int SDL_HapticQueryEffects(SDL_Haptic * haptic); + +/* * Creates a new haptic effect on the device. */ extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect);