> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XINPUT_VIBRATION_EX

> XINPUT_VIBRATION_EX

# XINPUT\_VIBRATION\_EX

描述四馬達控制器震動功能的馬達速度。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
typedef struct XINPUT_VIBRATION_EX {  
    WORD wLeftMotorSpeed;  
    WORD wRightMotorSpeed;  
    WORD wLeftTriggerSpeed;  
    WORD wRightTriggerSpeed;  
} XINPUT_VIBRATION_EX  
```

<a id="membersSection" />

### 成員

*wLeftMotorSpeed*\
類型：WORD

左側馬達的速度。有效值範圍為 0 到 65535。零表示完全不使用馬達，65535 表示以 100% 使用馬達。

*wRightMotorSpeed*\
類型：WORD

右側馬達的速度。有效值範圍為 0 到 65535。零表示完全不使用馬達，65535 表示以 100% 使用馬達。

*wLeftTriggerSpeed*\
類型：WORD

左扳機馬達的速度。有效值範圍為 0 到 65535。零表示完全不使用馬達，65535 表示以 100% 使用馬達。

*wRightTriggerSpeed*\
類型：WORD

右扳機馬達的速度。有效值範圍為 0 到 65535。零表示完全不使用馬達，65535 表示以 100% 使用馬達。

<a id="remarksSection" />

## 備註

左側馬達為低頻震動馬達。右側馬達為高頻震動馬達。這兩個馬達並不相同，會產生不同的震動效果。

兩個扳機馬達會透過扳機提供觸覺回饋。

此結構由 [XInputSetStateEx](/zh-TW/reference/input/xinputongameinput/functions/xinputsetstateex) 函式使用。

如需詳細資訊，請參閱 [XInputOnGameInput 包裝函式](/zh-TW/build/core-features/common/input/porting/input-porting-xinput#xinputWrapperSection)。

<a id="requirementsSection" />

## 需求

**標頭：** XInputOnGameInput.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[XInputSetState](/zh-TW/reference/input/xinputongameinput/functions/xinputsetstate)\
[從 XInput 移植到 GameInput](/zh-TW/build/core-features/common/input/porting/input-porting-xinput)\
[XInputOnGameInput](/zh-TW/reference/input/xinputongameinput/xinputongameinput_members)


## Related topics

- [XINPUT_VIBRATION_EX](/reference/input/xinputongameinput/structs/xinput_vibration_ex.md)
- [XInputSetStateEx](/reference/input/xinputongameinput/functions/xinputsetstateex.md)
