> ## 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

> XINPUT_VIBRATION

# XINPUT\_VIBRATION

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

<a id="syntaxSection" />

## 構文

```cpp theme={null}
typedef struct XINPUT_VIBRATION {  
    WORD wLeftMotorSpeed;  
    WORD wRightMotorSpeed;  
} XINPUT_VIBRATION  
```

<a id="membersSection" />

### メンバー

*wLeftMotorSpeed*\
型: WORD

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

*wRightMotorSpeed*\
型: WORD

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

<a id="remarksSection" />

## 解説

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

この構造体は [XInputSetState](/reference/input/xinputongameinput/functions/xinputsetstate) 関数で使用されます。

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

<a id="requirementsSection" />

## 要件

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

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

<a id="seealsoSection" />

## 関連項目

[XInputSetStateEx](/reference/input/xinputongameinput/functions/xinputsetstateex)\
[XInput から GameInput への移植](/build/core-features/common/input/porting/input-porting-xinput)\
[XInputOnGameInput](/reference/input/xinputongameinput/xinputongameinput_members)


## Related topics

- [XInputSetState](/ja-jp/reference/input/xinputongameinput/functions/xinputsetstate.md)
- [XInputOnGameInput](/ja-jp/reference/input/xinputongameinput/xinputongameinput_members.md)
- [XINPUT_CAPABILITIES](/ja-jp/reference/input/xinputongameinput/structs/xinput_capabilities.md)
- [XINPUT_VIBRATION_EX](/ja-jp/reference/input/xinputongameinput/structs/xinput_vibration_ex.md)
- [XInputSetStateEx](/ja-jp/reference/input/xinputongameinput/functions/xinputsetstateex.md)
