changeset 2622:446054caaa81 gsoc2008_force_feedback

Documenting special cases.
author Edgar Simo <bobbens@gmail.com>
date Wed, 06 Aug 2008 09:35:09 +0000
parents 83659de20bf2
children 6deba05725ac
files include/SDL_haptic.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_haptic.h	Wed Aug 06 09:28:07 2008 +0000
+++ b/include/SDL_haptic.h	Wed Aug 06 09:35:09 2008 +0000
@@ -826,6 +826,11 @@
  * \brief Opens a Haptic device for usage from a Joystick device.  Still has
  * to be closed seperately to the joystick.
  *
+ * When opening from a joystick you should first close the haptic device before
+ *  closing the joystick device.  If not, on some implementations the haptic
+ *  device will also get unallocated and you'll be unable to use force feedback
+ *  on that device.
+ *
  *    \param joystick Joystick to create a haptic device from.
  *    \return A valid haptic device identifier on success or NULL on error.
  *