Share via


GamepadVibration Struct

Definition

Describes the speed of the gamepad's four available vibration motors.

public value class GamepadVibration
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct GamepadVibration
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct GamepadVibration
var gamepadVibration = {
leftMotor : /* Your value */,
rightMotor : /* Your value */,
leftTrigger : /* Your value */,
rightTrigger : /* Your value */
}
Public Structure GamepadVibration
Inheritance
GamepadVibration
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Note that on devices with fewer motors, four vibration motor speed values are combined by the driver in a way that gives the best possible approximation of the haptic feedback you'd get on a controller that has all four motors.

Fields

LeftMotor

The level of the left vibration motor. Valid values are between 0.0 and 1.0, where 0.0 signifies no motor use and 1.0 signifies max vibration.

LeftTrigger

The left trigger vibration level. Valid values are between 0.0 and 1.0, where 0.0 signifies no motor use and 1.0 signifies max vibration.

RightMotor

The level of the right vibration motor. Valid values are between 0.0 and 1.0, where 0.0 signifies no motor use and 1.0 signifies max vibration.

RightTrigger

The right trigger vibration level. Valid values are between 0.0 and 1.0, where 0.0 signifies no motor use and 1.0 signifies max vibration.

Applies to