Click or drag to resize

IDeviceVibrate Method

[This is preliminary documentation and is subject to change.]

This method is currently designed for XBox-compatible controllers. The vibration API might still change as we expand the device and platform support.
Makes this device vibrate for specified amount of time.

Namespace:  RavingBots.MultiInput
Assembly:  RavingBots.MultiInput (in RavingBots.MultiInput.dll) Version: 0.12
Syntax
C#
bool Vibrate(
	int duration,
	float left,
	float right
)

Parameters

duration
Type: SystemInt32
Duration of the effect, in milliseconds.
left
Type: SystemSingle
Strength of the left motor vibration, in range [0, 1]. 0 immediately turns the motor off.
right
Type: SystemSingle
Strength of the right motor vibration, in range [0, 1]. 0 immediately turns the motor off.

Return Value

Type: Boolean
true if the signal was sent successfully to the device (not necessarily that the device acted on it).
See Also