#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] |
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.
Direction of the effect - Not used ATM.
Sint16 left_coeff[3] |
How fast to increase the force towards the negative side.
How fast to increase the force towards the positive side.