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

> IGameInputDevice::SetForceFeedbackMotorGain

# IGameInputDevice::SetForceFeedbackMotorGain

Aplica um fator de atenuação global a todos os efeitos carregados em um motor.

## Sintaxe

```cpp theme={null}
void SetForceFeedbackMotorGain(
    uint32_t motorIndex,
    float masterGain
);
```

### Parâmetros

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

Índice do motor a ser alterado.

*masterGain*   \_In\_\
Tipo: float

Fator de atenuação global, entre 0.0 e 1.0, para todos os efeitos carregados no motor.

### Valor retornado

Nenhum.

## Comentários

Este método aplica um fator de atenuação global a todos os efeitos carregados no motor. O ponteiro `masterGain` aceita valores entre 0.0 e 1.0. Isso é usado pelas configurações de intensidade de force feedback do aplicativo. Para obter mais informações, consulte [Visão geral do GameInput](/pt-BR/build/core-features/common/input/overviews/input-overview).

## Requisitos

**Cabeçalho:** GameInput.h

[GameInput](/pt-BR/reference/input/gameinput/gameinput_members)\
[IGameInputDevice](/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice)

## Histórico de versões

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


## Related topics

- [IGameInputDevice::SetHapticMotorState](/pt-BR/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [IGameInputForceFeedbackEffect::SetGain](/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetGain](/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [IGameInputDevice](/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)
- [Force feedback no GameInput](/pt-BR/build/core-features/common/input/advanced/input-forcefeedback.md)
