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

# GetKeyCount

> IGameInputReading::GetKeyCount

# IGameInputReading::GetKeyCount

키보드에서 활성 상태인 키의 개수를 검색합니다.

## 구문

```cpp theme={null}
uint32_t GetKeyCount();
```

### 매개변수

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

### 반환값

형식: uint32\_t

게임 컨트롤러에서 활성 상태인 키의 개수를 반환합니다.

## 설명

`IGameInputReading::GetKeyCount` 메서드는 게임 컨트롤러에서 활성 상태인 키의 개수를 검색합니다. 이는 [IGameInputReading::GetKeyState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md) 메서드에 필요한 배열의 개수를 결정하는 데 사용됩니다. GameInput API의 중급 및 고급 활용 사례에 대한 자세한 내용은 [GameInput 고급 항목](https://docs.xbox.com/ko/build/core-features/common/input/advanced/input-advanced-topics.md)을 참조하세요.

## 요구 사항

**헤더:** GameInput.h

[GameInput 개요](https://docs.xbox.com/ko/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputReading](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)

## 버전 기록

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


## Related topics

- [GetKeyState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getkeystate.md)
- [IGameInputReading (인터페이스 콘텐츠)](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [PFLobbyGetMemberPropertyKeys](https://docs.xbox.com/ko/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetmemberpropertykeys.md)
- [PFLobbyGetSearchPropertyKeys](https://docs.xbox.com/ko/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetsearchpropertykeys.md)
- [PFLobbyGetLobbyPropertyKeys](https://docs.xbox.com/ko/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetlobbypropertykeys.md)
