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

> 입력 장치에 있는 터치 표면의 수를 가져옵니다.

입력 장치에 있는 터치 표면의 수를 가져옵니다.

## 구문

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

### 매개변수

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

### 반환값

형식: uint32\_t

장치에 있는 터치 표면의 수이며, 장치에 터치 표면이 없으면 0입니다.

## 설명

터치 표면은 DualSense 또는 DualShock 4 컨트롤러의 터치패드와 같이 터치 접촉을 보고하는 장치의 영역입니다. 터치 표면이 하나 이상 있는 장치는 [IGameInputDevice::GetSupportedInput](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md)이 반환하는 값에 `GameInputKindTouch`를 포함합니다.

터치 표면은 이 메서드가 반환하는 값보다 작은 0부터 시작하는 인덱스로 식별됩니다. 이 인덱스를 사용하여 [IGameInputDevice::GetTouchSurfaceInfo](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_gettouchsurfaceinfo.md)를 호출해 표면에 대한 설명을 가져오고, [IGameInputReading::GetTouchSurfaceState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_gettouchsurfacestate.md)를 호출해 판독값에서 표면의 접촉을 읽으세요.

터치 표면의 수는 장치 개체의 수명 동안 변경되지 않습니다.

> [!NOTE]
>
> 터치 지원은 장치와 플랫폼에 따라 다릅니다.

## 요구 사항

**헤더:** 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)\
[IGameInputDevice::GetTouchSurfaceInfo](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_gettouchsurfaceinfo.md)\
[GameInputTouchSurfaceInfo](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/structs/gameinputtouchsurfaceinfo)\
[IGameInputReading::GetTouchSurfaceState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_gettouchsurfacestate.md)

## 버전 기록

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


## Related topics

- [IGameInputDevice::GetTouchSurfaceInfo](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_gettouchsurfaceinfo.md)
- [IGameInputReading::GetTouchContactCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_gettouchcontactcount.md)
- [IGameInputReading::GetTouchSurfaceState](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_gettouchsurfacestate.md)
- [IGameInputDevice::GetSupportedInput](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getsupportedinput.md)
- [IGameInputDevice::GetInputReportCount](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getinputreportcount.md)
