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

# GetControllerButtonCount

> IGameInputReading::GetControllerButtonCount

# IGameInputReading::GetControllerButtonCount

게임 컨트롤러의 버튼 개수를 검색합니다.

## 구문

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

### 매개변수

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

### 반환값

형식: uint32\_t

게임 컨트롤러의 버튼 개수를 반환합니다.

## 설명

`IGameInputReading::GetControllerButtonCount` 메서드는 게임 컨트롤러의 버튼 수를 검색합니다. 또한 [IGameInputReading::GetControllerButtonState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttonstate.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

- [GetControllerButtonState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttonstate.md)
- [IGameInputReading (인터페이스 콘텐츠)](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [다양한 GameInput 장치 유형과의 인터페이스](https://docs.xbox.com/ko/build/core-features/common/input/hardware/input-hardware-interfaces.md)
- [GetControllerAxisCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxiscount.md)
- [GetControllerSwitchCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchcount.md)
