PointerDeviceType 열거형

정의

포인터 디바이스 유형을 열거합니다.

public enum class PointerDeviceType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PointerDeviceType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PointerDeviceType
var value = Windows.Devices.Input.PointerDeviceType.touch
Public Enum PointerDeviceType
상속
PointerDeviceType
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

필드

Mouse 2

마우스

Pen 1

Touch 0

터치 사용 디바이스

예제

다음 예제에서는 PointerDeviceType 열거형을 사용하는 방법을 보여줍니다.

function getPointerDeviceType(pdt)
{
    switch(pdt)
    {
        case Windows.Devices.Input.PointerDeviceType.touch:
            return "Touch";

        case Windows.Devices.Input.PointerDeviceType.pen:
            return "Pen";

        case Windows.Devices.Input.PointerDeviceType.mouse:
            return "Mouse";
    }
    return "Undefined";
}

적용 대상