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

> 입력 장치가 지원하는 입력 종류를 가져옵니다.

입력 장치가 지원하는 입력 종류를 가져옵니다.

## 구문

```cpp theme={null}
GameInputKind GetSupportedInput();
```

### 매개변수

이 메서드에는 매개변수가 없습니다.

### 반환값

형식: [GameInputKind](https://docs.xbox.com/ko/reference/input/gameinput/enums/gameinputkind.md)

장치가 지원하는 모든 입력 종류를 설명하는 `GameInputKind` 플래그의 조합입니다. 장치가 알려진 입력 종류를 지원하지 않으면 `GameInputKindUnknown`을 반환합니다.

## 설명

반환된 플래그는 장치 전체를 설명합니다. 장치의 개별 판독값에는 이러한 종류 중 일부만 포함됩니다. 특정 판독값에 포함된 입력 종류를 확인하려면 [IGameInputReading::GetInputKind](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getinputkind.md)를 사용하세요.

입력 종류가 지원된다는 것은 일반적으로 장치에서 해당 정보 메서드가 데이터를 반환한다는 의미입니다. 예를 들어 반환된 값에 `GameInputKindGamepad`가 포함되어 있으면 [IGameInputDevice::GetGamepadInfo](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getgamepadinfo.md)는 `true`를 반환합니다. 마찬가지로 `GameInputKindTouch`는 [IGameInputDevice::GetTouchSurfaceCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_gettouchsurfacecount.md)가 0이 아닌 값을 반환함을 나타냅니다.

`GameInputKindLighting`은 출력 전용 종류입니다. 이는 장치에 [IGameInputDevice::SetLightingColor](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_setlightingcolor.md)를 사용하여 제어할 수 있는 램프가 있음을 나타내며, 판독값에는 조명 데이터가 포함되지 않습니다.

다음 예제는 장치를 게임패드로 사용할 수 있는지 확인합니다.

```cpp theme={null}
bool IsGamepad(IGameInputDevice* device) noexcept
{
    return (device->GetSupportedInput() & GameInputKindGamepad) != 0;
}
```

지원되는 입력 종류 집합은 장치 개체의 수명 동안 변경되지 않습니다.

GameInput v3 이하에서는 [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md)가 반환하는 [GameInputDeviceInfo](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) 구조체의 `supportedInput` 멤버에서 이 정보를 얻을 수 있었습니다.

## 요구 사항

**헤더:** 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)\
[GameInputKind](https://docs.xbox.com/ko/reference/input/gameinput/enums/gameinputkind.md)\
[IGameInputReading::GetInputKind](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getinputkind.md)

## 버전 기록

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


## Related topics

- [IGameInputDevice::GetDeviceFamily](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicefamily.md)
- [IGameInputDevice::GetUsage](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getusage.md)
- [IGameInputDevice::GetSupportedLightingGroups](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedlightinggroups.md)
- [GameInputKind](https://docs.xbox.com/ko/reference/input/gameinput/enums/gameinputkind.md)
- [IGameInputDevice::GetTouchSurfaceCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_gettouchsurfacecount.md)
