GamepadVibration
GamepadVibration
GamepadVibration
GamepadVibration
Struct
Definition
Describes the speed of the gamepad's four available vibration motors.
public : struct GamepadVibrationpublic struct GamepadVibrationPublic Structure GamepadVibration// You can use this struct in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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 LeftMotor LeftMotor 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.
public : field double LeftMotorpublic field double LeftMotorPublic Field LeftMotor// You can use this field in JavaScript.
LeftTrigger LeftTrigger LeftTrigger 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.
public : field double LeftTriggerpublic field double LeftTriggerPublic Field LeftTrigger// You can use this field in JavaScript.
RightMotor RightMotor RightMotor 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.
public : field double RightMotorpublic field double RightMotorPublic Field RightMotor// You can use this field in JavaScript.
RightTrigger RightTrigger RightTrigger 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.
public : field double RightTriggerpublic field double RightTriggerPublic Field RightTrigger// You can use this field in JavaScript.