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

# IGameInputForceFeedbackEffect::GetGain

> IGameInputForceFeedbackEffect::GetGain

# IGameInputForceFeedbackEffect::GetGain

Recupera o ganho definido em um efeito de force feedback.

## Sintaxe

```cpp theme={null}
float GetGain();
```

### Parâmetros

Este método não tem parâmetros.

### Valor retornado

Tipo: float

O ganho definido em um dispositivo de motor de force feedback.

## Comentários

O método `IGameInputForceFeedbackEffect::GetGain` recupera o ganho em um motor de force feedback. O ganho pode ter um valor entre 0,0 e 1,0. Para obter mais informações, confira [Tópicos avançados do GameInput](/pt-BR/build/core-features/common/input/advanced/input-advanced-topics).

## Requisitos

**Cabeçalho:** GameInput.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatíveis:** Windows, consoles da família XBOX One e consoles XBOX Series

## Confira também

[Visão geral do GameInput](/pt-BR/build/core-features/common/input/overviews/input-overview)\
[IGameInputForceFeedbackEffect::SetGain](/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain)\
[IGameInputDevice::SetForceFeedbackMotorGain](/pt-BR/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setforcefeedbackmotorgain)\
[IGameInputForceFeedbackEffect](/pt-BR/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/igameinputforcefeedbackeffect)

## Histórico de versões

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


## Related topics

- [IGameInputForceFeedbackEffect::GetGain](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [IGameInputForceFeedbackEffect::SetGain](/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
