include/SDL_haptic.h
changeset 13645 f7fc52b64177
parent 13635 701fe6486077
child 13789 a359f4f93439
equal deleted inserted replaced
13644:b1ebbd8cafef 13645:f7fc52b64177
   336  */
   336  */
   337 #define SDL_HAPTIC_SPHERICAL  2
   337 #define SDL_HAPTIC_SPHERICAL  2
   338 
   338 
   339 /**
   339 /**
   340  *  \brief Uses first axis only.
   340  *  \brief Uses first axis only.
   341  *
   341  *  For some device with only one axis (steering wheel,...),
       
   342  *  SDL_HAPTIC_CARTESIAN does not work. SDL_HAPTIC_FIRST_AXIS can be used in 
       
   343  *  this case.
       
   344  *  Using SDL_HAPTIC_FIRST_AXIS is equivalent to :
       
   345  *  \code
       
   346  *  SDL_HapticDirection direction;
       
   347  *  direction.type = SDL_HAPTIC_CARTESIAN;
       
   348  *  direction.dir[0] = 1;
       
   349  *  direction.dir[1] = 0;
       
   350  *  direction.dir[2] = 0;
       
   351  *  \endcode
   342  *  \sa SDL_HapticDirection
   352  *  \sa SDL_HapticDirection
   343  */
   353  */
   344 #define SDL_HAPTIC_FIRST_AXIS 3
   354 #define SDL_HAPTIC_FIRST_AXIS 3
   345 
   355 
   346 /* @} *//* Direction encodings */
   356 /* @} *//* Direction encodings */
   449  *  \endcode
   459  *  \endcode
   450  *
   460  *
   451  *  \sa SDL_HAPTIC_POLAR
   461  *  \sa SDL_HAPTIC_POLAR
   452  *  \sa SDL_HAPTIC_CARTESIAN
   462  *  \sa SDL_HAPTIC_CARTESIAN
   453  *  \sa SDL_HAPTIC_SPHERICAL
   463  *  \sa SDL_HAPTIC_SPHERICAL
       
   464  *  \sa SDL_HAPTIC_FIRST_AXIS
   454  *  \sa SDL_HapticEffect
   465  *  \sa SDL_HapticEffect
   455  *  \sa SDL_HapticNumAxes
   466  *  \sa SDL_HapticNumAxes
   456  */
   467  */
   457 typedef struct SDL_HapticDirection
   468 typedef struct SDL_HapticDirection
   458 {
   469 {