Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.49 KB

touchcapabilities.md

File metadata and controls

35 lines (23 loc) · 1.49 KB
-api-id -api-type
T:Windows.Devices.Input.TouchCapabilities
winrt class

Windows.Devices.Input.TouchCapabilities

-description

Supports the ability to determine the touch capabilities of any connected touch digitizers.

-remarks

The values returned by the properties discussed here are based on the total number of touch digitizers connected: Boolean properties return true if one digitizer supports a specific capability and numeric properties return the maximum value exposed by all digitizers.

The Device Capabilities Sample demonstrates how to detect the presence of input devices and retrieve the capabilities and attributes of each device.

The following code shows how to use this class to determine touch capabilities.

    function getTouchCapabilities() {
        var touchCapabilities = new Windows.Devices.Input.TouchCapabilities();
        id("contacts").innerHTML = touchCapabilities.Contacts;
    }

-examples

-see-also

Windows.Devices.Input, Quickstart: Identifying input devices, Basic input sample (Windows 10)