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

# IGameInputForceFeedbackEffect::GetMotorIndex

> IGameInputForceFeedbackEffect::GetMotorIndex

# IGameInputForceFeedbackEffect::GetMotorIndex

フォース フィードバック エフェクトに関連付けられているモーター インデックスを取得します。

## 構文

```cpp theme={null}
uint32_t GetMotorIndex();
```

### パラメーター

このメソッドにパラメーターはありません。

### 戻り値

型: uint32\_t

関連付けられているモーターのインデックスを返します。

## 解説

すべての `IGameInputForceFeedbackEffect` インスタンスは、エフェクトに関する共通の情報セットを取得します。デバイス上でエフェクトが読み込まれている具体的なモーターは、`GetMotorIndex` メソッドで取得できます。詳細については、「[GameInput の高度なトピック](/build/core-features/common/input/advanced/input-advanced-topics)」を参照してください。

## 要件

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

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体、XBOX Series 本体

## 関連項目

[GameInput の概要](/build/core-features/common/input/overviews/input-overview)\
[IGameInputForceFeedbackEffect](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect)

## バージョン履歴

| バージョン  | 変更点 |
| ------ | --- |
| **v0** | 導入。 |


## Related topics

- [IGameInputForceFeedbackEffect::GetGain](/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [IGameInputForceFeedbackEffect::SetGain](/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetDevice](/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getdevice.md)
- [IGameInputForceFeedbackEffect::GetParams](/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getparams.md)
- [IGameInputForceFeedbackEffect::GetState](/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getstate.md)
