Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Documenting special cases.

  • Loading branch information
bobbens committed Aug 6, 2008
1 parent 19423ae commit e985b8ed804129259bb894477902d88d08feefe4
Showing with 5 additions and 0 deletions.
  1. +5 −0 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.
*

0 comments on commit e985b8e

Please sign in to comment.