include/SDL_haptic.h
branchgsoc2008_force_feedback
changeset 2525 1fb3fba13a2c
parent 2523 366d84fdf8d1
child 2526 2d88b82ce781
     1.1 --- a/include/SDL_haptic.h	Thu Jul 17 16:07:20 2008 +0000
     1.2 +++ b/include/SDL_haptic.h	Thu Jul 17 16:08:46 2008 +0000
     1.3 @@ -508,11 +508,12 @@
     1.4   *   - SDL_HAPTIC_FRICTION: Effect based on axes movement.
     1.5   *
     1.6   * Direction is handled by condition internals instead of a direction member.
     1.7 - *  The condition effect specific members have two parameters.  The first
     1.8 - *  refers to the X axis, the second refers to the Y axis.  The right terms
     1.9 - *  refer to the positive side of the axis and the left terms refer to the
    1.10 - *  negative side of the axis.  Please refer to the SDL_HapticDirection 
    1.11 - *  diagram for which side is positive and which is negative.
    1.12 + *  The condition effect specific members have three parameters.  The first
    1.13 + *  refers to the X axis, the second refers to the Y axis and the third
    1.14 + *  refers to the Z axis.  The right terms refer to the positive side of the
    1.15 + *  axis and the left terms refer to the negative side of the axis.  Please 
    1.16 + *  refer to the SDL_HapticDirection  diagram for which side is positive and
    1.17 + *  which is negative.
    1.18   *
    1.19   * \sa SDL_HapticDirection
    1.20   * \sa SDL_HAPTIC_SPRING
    1.21 @@ -536,12 +537,12 @@
    1.22     Uint16 interval; /**< How soon it can be triggered again after button. */
    1.23  
    1.24     /* Condition */
    1.25 -   Uint16 right_sat[2]; /**< Level when joystick is to the positive side. */
    1.26 -   Uint16 left_sat[2]; /**< Level when joystick is to the negative side. */
    1.27 -   Sint16 right_coeff[2]; /**< How fast to increase the force towards the positive side. */
    1.28 -   Sint16 left_coeff[2]; /**< How fast to increase the force towards the negative side. */
    1.29 -   Uint16 deadband[2]; /**< Size of the dead zone. */
    1.30 -   Sint16 center[2]; /**< Position of the dead zone. */
    1.31 +   Uint16 right_sat[3]; /**< Level when joystick is to the positive side. */
    1.32 +   Uint16 left_sat[3]; /**< Level when joystick is to the negative side. */
    1.33 +   Sint16 right_coeff[3]; /**< How fast to increase the force towards the positive side. */
    1.34 +   Sint16 left_coeff[3]; /**< How fast to increase the force towards the negative side. */
    1.35 +   Uint16 deadband[3]; /**< Size of the dead zone. */
    1.36 +   Sint16 center[3]; /**< Position of the dead zone. */
    1.37  } SDL_HapticCondition;
    1.38  /**
    1.39   * \struct SDL_HapticRamp