Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 882 Bytes

pointerdevicetype.md

File metadata and controls

51 lines (36 loc) · 882 Bytes
-api-id -api-type
T:Windows.Devices.Input.PointerDeviceType
winrt enum

PointerDeviceType

-description

Enumerates pointer device types.

-enum-fields

-field Touch:0

A touch-enabled device

-field Pen:1

Pen

-field Mouse:2

Mouse

-remarks

-examples

The following example shows how to use the PointerDeviceType enumeration.

    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";
    }

-see-also