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

# XINPUT_VIBRATION_EX

> XINPUT_VIBRATION_EX

# XINPUT\_VIBRATION\_EX

4 モーター コントローラーのバイブレーション機能におけるモーター速度を表します。

## 構文

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

### メンバー

*wLeftMotorSpeed*\
型: WORD

左モーターの速度。有効値の範囲は 0 ～ 65535 です。0 はモーターをまったく使用しないことを、65535 はモーターを 100% で使用することを表します。

*wRightMotorSpeed*\
型: WORD

右モーターの速度。有効値の範囲は 0 ～ 65535 です。0 はモーターをまったく使用しないことを、65535 はモーターを 100% で使用することを表します。

*wLeftTriggerSpeed*\
型: WORD

左トリガー モーターの速度。有効値の範囲は 0 ～ 65535 です。0 はモーターをまったく使用しないことを、65535 はモーターを 100% で使用することを表します。

*wRightTriggerSpeed*\
型: WORD

右トリガー モーターの速度。有効値の範囲は 0 ～ 65535 です。0 はモーターをまったく使用しないことを、65535 はモーターを 100% で使用することを表します。

## 解説

左モーターは低周波の振動モーターです。右モーターは高周波の振動モーターです。この 2 つのモーターは同じではなく、異なる振動効果を生み出します。

2 つのトリガー モーターは、トリガーを通じてハプティック フィードバックを提供します。

この構造体は [XInputSetStateEx](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputsetstateex.md) 関数で使用されます。

詳細については、[XInputOnGameInput ラッパー](https://docs.xbox.com/ja-jp/build/core-features/common/input/porting/input-porting-xinput.md#xinputWrapperSection)を参照してください。

## 要件

**ヘッダー:** XInputOnGameInput.h

**対応プラットフォーム:** XBOX One ファミリー本体および XBOX Series 本体

## 関連項目

[XInputSetState](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputsetstate.md)\
[XInput から GameInput への移植](https://docs.xbox.com/ja-jp/build/core-features/common/input/porting/input-porting-xinput.md)\
[XInputOnGameInput](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/xinputongameinput_members.md)


## Related topics

- [XInputSetStateEx](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputsetstateex.md)
- [XInputOnGameInput (API の内容)](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XINPUT_VIBRATION](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_vibration.md)
- [XInputSetState](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputsetstate.md)
- [XINPUT_CAPABILITIES](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_capabilities.md)
