> ## 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>**Preterido.** Este método foi removido no GameInput v1 e não está disponível na API atual.</Warning>

Define o estado do motor háptico especificado no dispositivo.

## Sintaxe

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

### Parâmetros

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

O índice baseado em zero do motor háptico a ser definido.

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

Um ponteiro para uma estrutura [GameInputHapticFeedbackParams](/pt-BR/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams) que descreve o efeito háptico a ser reproduzido.

### Valor retornado

Tipo: HRESULT

Retorna E\_NOTIMPL, pois este método nunca foi implementado na v0.

## Comentários

Este método foi removido na v1 junto com a estrutura [GameInputHapticFeedbackParams](/pt-BR/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams). Na API atual, o feedback háptico é controlado por meio de [IGameInputDevice::SetForceFeedbackMotorGain](/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain) e [IGameInputForceFeedbackEffect](/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect).

## Histórico de versões

| Versão | Alterações |
| - | - |
| **v1** | Removido. |
| **v0** | Introduzido. |

## Confira também

[Membros preteridos da API GameInput](/pt-BR/reference/input/gameinput/deprecated/gameinput_deprecated_members)\
[GameInputHapticFeedbackParams](/pt-BR/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams)\
[IGameInputDevice](/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)


## Related topics

- [IGameInputDevice::SetHapticMotorState](/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [GameInputHapticFeedbackParams](/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)
