Compartir a través de


XINPUT_VIBRATION

Describes motor speeds for the vibration capability of a two-motor controller.

Syntax

typedef struct XINPUT_VIBRATION {  
    WORD wLeftMotorSpeed;  
    WORD wRightMotorSpeed;  
} XINPUT_VIBRATION  

Members

wLeftMotorSpeed
Type: WORD

Speed of the left motor. Valid values range from 0 through 65535. Zero signifies that the motor is not used at all, and 65535 signifies that the motor is used at 100 percent.

wRightMotorSpeed
Type: WORD

Speed of the right motor. Valid values range from 0 through 65535. Zero signifies that the motor is not used at all, and 65535 signifies that the motor is used at 100 percent.

Remarks

The left motor is the low-frequency rumble motor. The right motor is the high-frequency rumble motor. The two motors are not the same, and they create different vibration effects.

This structure is used by the XInputSetState function.

For more information, see The XInputOnGameInput wrapper.

Requirements

Header: XInputOnGameInput.h

Supported platforms: Xbox One family consoles and Xbox Series consoles

See also

XInputSetStateEx
Porting from XInput to GameInput
XInputOnGameInput