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

# GetMotorIndex

> IGameInputForceFeedbackEffect::GetMotorIndex

# IGameInputForceFeedbackEffect::GetMotorIndex

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

## 構文

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

### パラメーター

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

### 戻り値

型: uint32\_t

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

## 解説

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

## 要件

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

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

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

## 関連項目

[GameInput の概要](https://docs.xbox.com/ja-jp/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputForceFeedbackEffect](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)

## バージョン履歴

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


## Related topics

- [IsForceFeedbackMotorPoweredOn](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_isforcefeedbackmotorpoweredon.md)
- [SetForceFeedbackMotorGain](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md)
- [IGameInputDevice::SetHapticMotorState (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [GetIndex](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [GameInputRumbleMotors](https://docs.xbox.com/ja-jp/reference/input/gameinput/enums/gameinputrumblemotors.md)
