include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2505 abfcba0f3bd1
parent 2504 e68c99a19a2f
child 2506 ba8e99fe92c1
     1.1 --- a/include/SDL_haptic.h	Mon Jul 07 18:42:10 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Tue Jul 08 19:23:03 2008 +0000
     1.3 @@ -636,11 +636,25 @@
     1.4   *    \param device_index Index of the device to open.
     1.5   *    \return Device identifier or NULL on error.
     1.6   *
     1.7 + * \sa SDL_HapticIndex
     1.8   * \sa SDL_HapticOpenFromJoystick
     1.9   * \sa SDL_HapticClose
    1.10   */
    1.11  extern DECLSPEC SDL_Haptic * SDL_HapticOpen(int device_index);
    1.12  
    1.13 +
    1.14 +/**
    1.15 + * \fn int SDL_HapticIndex(SDL_Haptic * haptic)
    1.16 + *
    1.17 + * \brief Gets the index of a haptic device.
    1.18 + *
    1.19 + *    \param haptic Haptic device to get the index of.
    1.20 + *    \return The index of the haptic device or -1 on error.
    1.21 + *
    1.22 + * \sa SDL_HapticOpen
    1.23 + */
    1.24 +extern DECLSPEC int SDL_HapticIndex(SDL_Haptic * haptic);
    1.25 +
    1.26  /**
    1.27   * \fn int SDL_JoystickIsHaptic(SDL_Joystick * joystick)
    1.28   *