diff include/SDL_haptic.h @ 2515:030fc4375e63 gsoc2008_force_feedback

Added SDL_HapticNumEffectsPlaying().
author Edgar Simo <bobbens@gmail.com>
date Thu, 10 Jul 2008 17:16:11 +0000
parents ef147ee4896c
children 37c13c12c878
line wrap: on
line diff
--- a/include/SDL_haptic.h	Thu Jul 10 16:42:43 2008 +0000
+++ b/include/SDL_haptic.h	Thu Jul 10 17:16:11 2008 +0000
@@ -740,11 +740,26 @@
  *    \return The number of effects the haptic device can store or
  *            -1 on error.
  *
+ * \sa SDL_HapticNumEffectsPlaying
  * \sa SDL_HapticQuery
  */
 extern DECLSPEC int SDL_HapticNumEffects(SDL_Haptic * haptic);
 
 /**
+ * \fn int SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic)
+ *
+ * \brief Returns the number of effects a haptic device can play at the same time.
+ *
+ *    \param haptic The haptic device to query maximum playing effect.s
+ *    \return The number of effects the haptic device can play at the same time
+ *            or -1 on error.
+ *
+ * \sa SDL_HapticNumEffects
+ * \sa SDL_HapticQuery
+ */
+extern DECLSPEC int SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic);
+
+/**
  * \fn unsigned int SDL_HapticQuery(SDL_Haptic * haptic)
  *
  * \brief Gets the haptic devices supported features in bitwise matter.