IInputContext.RumbleGamepad(float, float, TimeSpan, int) Method
Definition
Namespace: Brine2D.Input
Rumbles the gamepad using the low-frequency and high-frequency motors. Intensity values are 0.0 \(off\) to 1.0 \(max\). Duration of 0 stops rumble.
C#
bool RumbleGamepad(float lowFrequency, float highFrequency, System.TimeSpan duration, int gamepadIndex=0);
Parameters
lowFrequency System.Single
Low-frequency \(left\) motor intensity \(0\.0–1\.0\).
highFrequency System.Single
High-frequency \(right\) 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 rumble and the command succeeded.