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

> 키보드 종류, 레이아웃 및 키 수와 같은 장치의 키보드 속성을 검색합니다.

키보드 종류, 레이아웃 및 키 수와 같은 장치의 키보드 속성을 검색합니다.

## 구문

```cpp theme={null}
bool GetKeyboardInfo(
    GameInputKeyboardInfo* info
);
```

### 매개변수

*info*   \_Out\_\
형식: [GameInputKeyboardInfo](https://docs.xbox.com/ko/reference/input/gameinput/structs/gameinputkeyboardinfo.md)\*

장치의 키보드 속성을 받는 `GameInputKeyboardInfo` 구조체에 대한 포인터입니다. 장치가 키보드 입력을 지원하지 않으면 구조체의 모든 멤버가 0으로 설정됩니다.

### 반환값

형식: bool

장치가 키보드 입력을 지원하고 *info*가 채워졌으면 `true`이고, 그렇지 않으면 `false`입니다.

## 설명

`GetKeyboardInfo` 메서드는 장치의 키보드 속성을 호출자가 제공한 구조체에 복사합니다. [GetSupportedInput](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md)이 반환하는 값에 `GameInputKindKeyboard`가 포함되어 있으면 장치가 키보드 입력을 지원하는 것입니다. 장치가 키보드 입력을 지원하지 않으면 `GetKeyboardInfo`는 *info*를 0으로 초기화하고 `false`를 반환합니다.

대부분의 키보드 속성은 장치의 수명 동안 고정되어 있습니다. 예외는 `layout` 멤버로, 활성 키보드 레이아웃이 변경되면(예: 사용자가 입력 언어를 전환할 때) GameInput이 이 멤버를 그 자리에서 업데이트합니다. 레이아웃이 변경되면 GameInput은 [IGameInput::RegisterDeviceCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)으로 등록된 장치 콜백에 `GameInputDeviceEventKeyboardLayoutUpdated` [GameInputDeviceEvent](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/enums/gameinputdeviceevent)를 발생시킵니다. 해당 콜백에서 `GetKeyboardInfo`를 다시 호출하여 새 레이아웃을 읽으세요.

다음 예제는 장치의 키보드 속성을 쿼리하는 방법을 보여줍니다.

```cpp theme={null}
GameInputKeyboardInfo info;
if (device->GetKeyboardInfo(&info))
{
    uint32_t keyboardLayout = info.layout;
    uint32_t keyCount = info.keyCount;
    // ...
}
```

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) 구조체의 `keyboardInfo` 멤버에서 이 정보를 얻을 수 있었습니다.

## 요구 사항

**헤더:** GameInput.h

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

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

## 함께 보기

[GameInput 개요](https://docs.xbox.com/ko/build/core-features/common/input/overviews/input-overview.md)\
[GameInputKeyboardInfo](https://docs.xbox.com/ko/reference/input/gameinput/structs/gameinputkeyboardinfo.md)\
[GetSupportedInput](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md)\
[GameInputKind](https://docs.xbox.com/ko/reference/input/gameinput/enums/gameinputkind.md)\
[IGameInput::RegisterDeviceCallback](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinput/methods/igameinput_registerdevicecallback.md)\
[GameInputDeviceEvent](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/enums/gameinputdeviceevent)\
[IGameInputReading::GetKeyState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md)\
[IGameInputDevice](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)

## 버전 기록

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


## Related topics

- [GameInputKeyboardInfo](https://docs.xbox.com/ko/reference/input/gameinput/structs/gameinputkeyboardinfo.md)
- [IGameInput::RegisterKeyboardLayoutCallback (사용되지 않음)](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_registerkeyboardlayoutcallback.md)
- [IGameInputDevice::GetInputReportInfo](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getinputreportinfo.md)
- [IGameInputDevice::GetGamepadInfo](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getgamepadinfo.md)
- [IGameInputDevice::GetSensorsInfo](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsensorsinfo.md)
