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

Recupera el índice del motor asociado al efecto de retroalimentación de fuerza.

## Sintaxis

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

### Parámetros

Este método no tiene parámetros.

### Valor devuelto

Tipo: uint32\_t

Devuelve el índice del motor asociado.

## Comentarios

Cada instancia de `IGameInputForceFeedbackEffect` recupera un conjunto común de información sobre el efecto. El motor específico del dispositivo donde se carga el efecto se obtiene con el método `GetMotorIndex`. Para obtener más información, consulte [Temas avanzados de GameInput](https://docs.xbox.com/es/build/core-features/common/input/advanced/input-advanced-topics.md).

## Requisitos

**Encabezado:** GameInput.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[Información general de GameInput](https://docs.xbox.com/es/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputForceFeedbackEffect](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect.md)

## Historial de versiones

| Versión | Cambios |
| - | - |
| **v0** | Se introdujo. |


## Related topics

- [IsForceFeedbackMotorPoweredOn](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_isforcefeedbackmotorpoweredon.md)
- [SetForceFeedbackMotorGain](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md)
- [IGameInputDevice::SetHapticMotorState (en desuso)](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [CreateForceFeedbackEffect](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_createforcefeedbackeffect.md)
- [GetIndex](https://docs.xbox.com/es/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
