> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputDevice::GetSupportedLightingGroupSize

> 지정된 조명 그룹 선택 항목에 있는 입력 장치의 램프 수를 가져옵니다.

지정된 조명 그룹 선택 항목에 있는 입력 장치의 램프 수를 가져옵니다.

## 구문

```cpp theme={null}
uint32_t GetSupportedLightingGroupSize(
    GameInputLightingGroups group
);
```

### 매개변수

*group*\
형식: [GameInputLightingGroups](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/enums/gameinputlightinggroups)

램프 수를 셀 조명 그룹 선택 항목입니다. 하나 이상의 명명된 그룹 플래그, `GameInputLightingGroupAll` 또는 `GameInputLightingGroupUnknown`일 수 있습니다.

### 반환값

형식: uint32\_t

선택 항목에 있는 램프 수입니다. 장치에 선택 항목의 램프가 없거나 *group*에 정의되지 않은 플래그가 포함되어 있으면 0을 반환합니다.

## 설명

*group*의 값은 다음과 같이 해석됩니다.

| *group*의 값 | 계산되는 램프 |
| - | - |
| `GameInputLightingGroupAll` | 명명된 그룹에 속하지 않는 램프를 포함하여 장치의 모든 램프입니다. |
| `GameInputLightingGroupUnknown` | 명명된 그룹에 속하지 않는 램프만 해당합니다. |
| 하나 이상의 명명된 그룹 플래그 | 선택 항목에 있는 각 명명된 그룹의 램프 수 합계입니다. |

선택 항목의 램프 수는 서수로 개별 램프를 지정할 때 [IGameInputDevice::SetLightingColor](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setlightingcolor.md)의 *groupOrderIndex* 매개변수에 대한 배타적 상한입니다. 단, `GameInputLightingGroupKeyboardKey`는 예외로, 대신 키보드 스캔 코드로 개별 램프를 지정합니다.

다음 예제는 페이스 버튼 그룹의 각 램프를 서로 다른 녹색 음영으로 켭니다.

```cpp theme={null}
void SetFaceButtonGradient(IGameInputDevice* device) noexcept
{
    const uint32_t lampCount = device->GetSupportedLightingGroupSize(GameInputLightingGroupFaceButtons);
    for (uint32_t i = 0; i < lampCount; ++i)
    {
        const uint8_t green = static_cast<uint8_t>(255 * (i + 1) / lampCount);
        device->SetLightingColor({ 0, green, 0 }, GameInputLightingGroupFaceButtons, i);
    }

    device->ApplyLightingColors();
}
```

램프 수는 장치 개체의 수명 동안 변경되지 않습니다.

> [!NOTE]
>
> 조명 지원은 장치와 플랫폼에 따라 다릅니다. 현재 GameInput은 Windows 동적 조명(LampArray) 장치와 DualSense 컨트롤러의 라이트바에서 조명을 지원합니다.

## 요구 사항

**헤더:** GameInput.h

**라이브러리:** gameinput.lib

**지원되는 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[GameInput 개요](https://docs.xbox.com/ko/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[GameInputLightingGroups](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/enums/gameinputlightinggroups)\
[IGameInputDevice::GetSupportedLightingGroups](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedlightinggroups.md)\
[IGameInputDevice::SetLightingColor](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setlightingcolor.md)\
[IGameInputDevice::ApplyLightingColors](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_applylightingcolors.md)

## 버전 기록

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


## Related topics

- [IGameInputDevice::GetSupportedLightingGroups](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedlightinggroups.md)
- [IGameInputDevice::SetLightingColor](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setlightingcolor.md)
- [IGameInputDevice::GetSupportedInput](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md)
- [IGameInputDevice::GetSupportedRumbleMotors](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedrumblemotors.md)
- [IGameInputDevice::GetSupportedSystemButtons](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedsystembuttons.md)
