-api-id | -api-type |
---|---|
T:Windows.Devices.Input.PointerDeviceType |
winrt enum |
Enumerates pointer device types.
A touch-enabled device
Pen
Mouse
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";
}