A template for a condition effect.
Creates a new instance of the effect.
effectType one of SDL_HAPTIC_SPRING, SDL_HAPTIC_DAMPER, SDL_HAPTIC_INERTIA, SDL_HAPTIC_FRICTION
Returns the duration of effect (ms).
Returns the delay before starting effect.
Returns the button that triggers effect.
Returns how soon before effect can be triggered again.
Returns the effect direction.
This instance is owned by the effect, and any changes will apply only to this effect.
Sets the duration of the effect.
You can pass SDL_HAPTIC_INFINITY to length instead of a 0-32767 value.
Sets the delay before starting the effect.
Sets the button that triggers the effect.
Sets how soon it can be triggered again after button.
Method SetRightSat(x:Short, y:Short = 0, z:Short = 0)
Sets level when joystick is to the positive side.
max = $FFFF
Method SetLeftSat(x:Short, y:Short = 0, z:Short = 0)
Sets level when joystick is to the negative side.
max = $FFFF
Method SetRightCoeff(x:Int, y:Int = 0, z:Int = 0)
Sets how fast to increase the force towards the positive side.
Method SetLeftCoeff(x:Int, y:Int = 0, z:Int = 0)
Sets how fast to increase the force towards the negative side.
Method SetDeadband(x:Short, y:Short = 0, z:Short = 0)
Sets the size of the dead zone.
max = $FFFF: whole axis-range when 0-centered
Method SetCenter(x:Int, y:Int = 0, z:Int = 0)
Sets the position of the dead zone.