include/SDL_haptic.h
changeset 7677 871d43c6968a
parent 7630 c711a2f14814
child 7678 286c42d7c5ed
equal deleted inserted replaced
7676:013483acb374 7677:871d43c6968a
   138 /**
   138 /**
   139  *  \name Haptic features
   139  *  \name Haptic features
   140  *
   140  *
   141  *  Different haptic features a device can have.
   141  *  Different haptic features a device can have.
   142  */
   142  */
   143 /*@{*/
   143 /*@{ */
   144 
   144 
   145 /**
   145 /**
   146  *  \name Haptic effects
   146  *  \name Haptic effects
   147  */
   147  */
   148 /*@{*/
   148 /*@{ */
   149 
   149 
   150 /**
   150 /**
   151  *  \brief Constant effect supported.
   151  *  \brief Constant effect supported.
   152  *
   152  *
   153  *  Constant haptic effect.
   153  *  Constant haptic effect.
   175  *          we ran out of bits, and this is important for XInput devices.
   175  *          we ran out of bits, and this is important for XInput devices.
   176  */
   176  */
   177 #define SDL_HAPTIC_LEFTRIGHT     (1<<2)
   177 #define SDL_HAPTIC_LEFTRIGHT     (1<<2)
   178 
   178 
   179 /* !!! FIXME: put this back when we have more bits in 2.1 */
   179 /* !!! FIXME: put this back when we have more bits in 2.1 */
   180 /*#define SDL_HAPTIC_SQUARE     (1<<2)*/
   180 /*#define SDL_HAPTIC_SQUARE     (1<<2) */
   181 
   181 
   182 /**
   182 /**
   183  *  \brief Triangle wave effect supported.
   183  *  \brief Triangle wave effect supported.
   184  *
   184  *
   185  *  Periodic haptic effect that simulates triangular waves.
   185  *  Periodic haptic effect that simulates triangular waves.
   260  *
   260  *
   261  *  User defined custom haptic effect.
   261  *  User defined custom haptic effect.
   262  */
   262  */
   263 #define SDL_HAPTIC_CUSTOM     (1<<11)
   263 #define SDL_HAPTIC_CUSTOM     (1<<11)
   264 
   264 
   265 /*@}*//*Haptic effects*/
   265 /*@} *//*Haptic effects */
   266 
   266 
   267 /* These last few are features the device has, not effects */
   267 /* These last few are features the device has, not effects */
   268 
   268 
   269 /**
   269 /**
   270  *  \brief Device can set global gain.
   270  *  \brief Device can set global gain.
   303 
   303 
   304 
   304 
   305 /**
   305 /**
   306  * \name Direction encodings
   306  * \name Direction encodings
   307  */
   307  */
   308 /*@{*/
   308 /*@{ */
   309 
   309 
   310 /**
   310 /**
   311  *  \brief Uses polar coordinates for the direction.
   311  *  \brief Uses polar coordinates for the direction.
   312  *
   312  *
   313  *  \sa SDL_HapticDirection
   313  *  \sa SDL_HapticDirection
   326  *
   326  *
   327  *  \sa SDL_HapticDirection
   327  *  \sa SDL_HapticDirection
   328  */
   328  */
   329 #define SDL_HAPTIC_SPHERICAL  2
   329 #define SDL_HAPTIC_SPHERICAL  2
   330 
   330 
   331 /*@}*//*Direction encodings*/
   331 /*@} *//*Direction encodings */
   332 
   332 
   333 /*@}*//*Haptic features*/
   333 /*@} *//*Haptic features */
   334 
   334 
   335 /*
   335 /*
   336  * Misc defines.
   336  * Misc defines.
   337  */
   337  */
   338 
   338