Overloads
static void TriggerHaptics (float leftMotor, float rightMotor, float leftTrigger, float rightTrigger, int duration)

Remarks

SDL will translate these commands into haptic pulses that should work on all controller types.

Parameters

NameTypeDescription
leftMotor float The speed of the left motor, between 0.0 and 1.0.
rightMotor float The speed of the right motor, between 0.0 and 1.0.
leftTrigger = 0 float (Xbox One controller only) The speed of the left trigger motor, between 0.0 and 1.0.
rightTrigger = 0 float (Xbox One controller only) The speed of the right trigger motor, between 0.0 and 1.0.
duration = 500 int How long (in milliseconds) should we apply this for?
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.