include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2512 ef147ee4896c
parent 2511 f12ae0bae468
child 2515 030fc4375e63
     1.1 --- a/include/SDL_haptic.h	Wed Jul 09 18:29:11 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Thu Jul 10 08:38:08 2008 +0000
     1.3 @@ -638,6 +638,7 @@
     1.4   *    \return Device identifier or NULL on error.
     1.5   *
     1.6   * \sa SDL_HapticIndex
     1.7 + * \sa SDL_HapticOpenFromMouse
     1.8   * \sa SDL_HapticOpenFromJoystick
     1.9   * \sa SDL_HapticClose
    1.10   * \sa SDL_HapticSetGain
    1.11 @@ -672,6 +673,29 @@
    1.12  extern DECLSPEC int SDL_HapticIndex(SDL_Haptic * haptic);
    1.13  
    1.14  /**
    1.15 + * \fn int SDL_MouseIsHaptic(void)
    1.16 + *
    1.17 + * \brief Gets whether or not the current mouse has haptic capabilities.
    1.18 + *
    1.19 + *    \return SDL_TRUE if the mouse is haptic, SDL_FALSE if it isn't.
    1.20 + *
    1.21 + * \sa SDL_HapticOpenFromMouse
    1.22 + */
    1.23 +extern DECLSPEC SDL_MouseIsHaptic(void);
    1.24 +
    1.25 +/**
    1.26 + * \fn SDL_Haptic * SDL_HapticOpenFromMouse(void)
    1.27 + *
    1.28 + * \brief Tries to open a haptic device from the current mouse.
    1.29 + *
    1.30 + *    \return The haptic device identifier or NULL on error.
    1.31 + *
    1.32 + * \sa SDL_MouseIsHaptic
    1.33 + * \sa SDL_HapticOpen
    1.34 + */
    1.35 +extern DECLSPEC SDL_Haptic * SDL_HapticOpenFromMouse(void);
    1.36 +
    1.37 +/**
    1.38   * \fn int SDL_JoystickIsHaptic(SDL_Joystick * joystick)
    1.39   *
    1.40   * \brief Checks to see if a joystick has haptic features.