SDL_HapticCondition Struct Reference

A structure containing a template for a Condition effect. More...

#include <SDL_haptic.h>


Data Fields

Uint16 type
SDL_HapticDirection direction
Uint32 length
Uint16 delay
Uint16 button
Uint16 interval
Uint16 right_sat [3]
Uint16 left_sat [3]
Sint16 right_coeff [3]
Sint16 left_coeff [3]
Uint16 deadband [3]
Sint16 center [3]


Detailed Description

A structure containing a template for a Condition effect.

The struct handles the following effects:

Direction is handled by condition internals instead of a direction member. The condition effect specific members have three parameters. The first refers to the X axis, the second refers to the Y axis and the third refers to the Z axis. The right terms refer to the positive side of the axis and the left terms refer to the negative side of the axis. Please refer to the SDL_HapticDirection diagram for which side is positive and which is negative.

See also:
SDL_HapticDirection

SDL_HAPTIC_SPRING

SDL_HAPTIC_DAMPER

SDL_HAPTIC_INERTIA

SDL_HAPTIC_FRICTION

SDL_HapticEffect


Field Documentation

Button that triggers the effect.

Position of the dead zone.

Size of the dead zone.

Delay before starting the effect.

Direction of the effect - Not used ATM.

How soon it can be triggered again after button.

How fast to increase the force towards the negative side.

Level when joystick is to the negative side.

Duration of the effect.

How fast to increase the force towards the positive side.

Level when joystick is to the positive side.

SDL_HAPTIC_SPRING, SDL_HAPTIC_DAMPER, SDL_HAPTIC_INERTIA or SDL_HAPTIC_FRICTION


The documentation for this struct was generated from the following file:

Generated on Mon Sep 21 21:32:25 2009 for Simple DirectMedia Layer by  doxygen 1.5.8