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

모터에 로드된 모든 효과에 대한 전역 감쇠 계수를 적용합니다.

## 구문

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

### 매개변수

*motorIndex*   \_In\_\
형식: uint32\_t

변경할 모터의 인덱스입니다.

*masterGain*   \_In\_\
형식: float

모터에 로드된 모든 효과에 대한 전역 감쇠 계수로, 0.0과 1.0 사이의 값입니다.

### 반환값

없음.

## 설명

이 메서드는 모터에 로드된 모든 효과에 전역 감쇠 계수를 적용합니다. `masterGain` 포인터는 0.0과 1.0 사이의 값을 허용합니다. 이는 애플리케이션의 포스 피드백 강도 설정에 사용됩니다. 자세한 내용은 [GameInput 개요](/build/core-features/common/input/overviews/input-overview)를 참조하세요.

## 요구 사항

**헤더:** GameInput.h

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

## 버전 기록

| 버전     | 변경 사항 |
| ------ | ----- |
| **v0** | 도입됨.  |


## Related topics

- [IGameInputForceFeedbackEffect::SetGain](/ko/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_setgain.md)
- [IGameInputForceFeedbackEffect::GetGain](/ko/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getgain.md)
- [IGameInputDevice::SetHapticMotorState](/ko/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_sethapticmotorstate.md)
- [IsForceFeedbackMotorPoweredOn](/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_isforcefeedbackmotorpoweredon.md)
- [GameInputHapticFeedbackParams](/ko/reference/input/gameinput/deprecated/structs/gameinputhapticfeedbackparams.md)
