IInputContext.RumbleGamepadTriggers(float, float, TimeSpan, int) Method
Definition
Namespace: Brine2D.Input
Rumbles the gamepad triggers independently \(e\.g\., Xbox impulse triggers\). Intensity values are 0.0 \(off\) to 1.0 \(max\). Duration of 0 stops rumble.
C#
bool RumbleGamepadTriggers(float leftTrigger, float rightTrigger, System.TimeSpan duration, int gamepadIndex=0);
Parameters
leftTrigger System.Single
Left trigger motor intensity \(0\.0–1\.0\).
rightTrigger System.Single
Right trigger motor intensity \(0\.0–1\.0\).
duration System.TimeSpan
Duration of the rumble effect.
gamepadIndex System.Int32
Gamepad slot index.
Returns
System.Boolean
True if the gamepad supports trigger rumble and the command succeeded.