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

# GetControllerSwitchCount

> IGameInputReading::GetControllerSwitchCount

# IGameInputReading::GetControllerSwitchCount

게임 컨트롤러의 스위치 개수를 검색합니다.

## 구문

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

### 매개변수

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

### 반환값

형식: uint32\_t

게임 컨트롤러의 스위치 개수를 반환합니다.

## 설명

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

- [GetControllerSwitchState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerswitchstate.md)
- [IGameInputReading (인터페이스 콘텐츠)](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/igameinputreading.md)
- [GetControllerAxisCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxiscount.md)
- [GetControllerButtonCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrollerbuttoncount.md)
- [GameInputControllerInfo](https://docs.xbox.com/ko/reference/input/gameinput/structs/gameinputcontrollerinfo.md)
