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

# IGameInputDevice::SetHapticMotorState

> IGameInputDevice::SetHapticMotorState

# IGameInputDevice::SetHapticMotorState

<Warning>**En desuso.** Este método se quitó en GameInput v1 y no está disponible en la API actual.</Warning>

Establece el estado del motor háptico para el motor especificado del dispositivo.

## Sintaxis

```cpp theme={null}
HRESULT SetHapticMotorState(
    uint32_t motorIndex,
    const GameInputHapticFeedbackParams* params
);
```

### Parámetros

*motorIndex*   \_In\_\
Tipo: uint32\_t

El índice de base cero del motor háptico que se va a establecer.

*params*   \_In\_\
Tipo: const [GameInputHapticFeedbackParams](/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams)\*

Un puntero a una estructura [GameInputHapticFeedbackParams](/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams) que describe el efecto háptico que se va a reproducir.

### Valor devuelto

Tipo: HRESULT

Devuelve E\_NOTIMPL, ya que este método nunca se implementó en v0.

## Comentarios

Este método se quitó en v1 junto con la estructura [GameInputHapticFeedbackParams](/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams). En la API actual, la respuesta háptica se controla mediante [IGameInputDevice::SetForceFeedbackMotorGain](/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain) e [IGameInputForceFeedbackEffect](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect).

## Historial de versiones

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

## Consulte también

[Miembros de la API de GameInput en desuso](/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[GameInputHapticFeedbackParams](/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams)\
[IGameInputDevice](/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)


## Related topics

- [GameInputHapticFeedbackParams](/es/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)
- [IGameInputDevice::SetForceFeedbackMotorGain](/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain.md)
- [IGameInputDevice::SetInputSynchronizationState](/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setinputsynchronizationstate.md)
- [IGameInputDevice::GetBatteryState](/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getbatterystate.md)
- [IGameInputDevice::SetRawDeviceFeature](/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_setrawdevicefeature.md)
