From e985b8ed804129259bb894477902d88d08feefe4 Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Wed, 6 Aug 2008 09:35:09 +0000 Subject: [PATCH] Documenting special cases. --- include/SDL_haptic.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/SDL_haptic.h b/include/SDL_haptic.h index b584d28f6..e8742cf06 100644 --- a/include/SDL_haptic.h +++ b/include/SDL_haptic.h @@ -826,6 +826,11 @@ extern DECLSPEC int SDLCALL SDL_JoystickIsHaptic(SDL_Joystick * joystick); * \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. *