Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TouchCapabilities class

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

Syntax


var touchCapabilities = new Windows.Devices.Input.TouchCapabilities();

Members

The TouchCapabilities class has these types of members:

Constructors

The TouchCapabilities class has these constructors.

ConstructorDescription
TouchCapabilities Initializes a new instance of the TouchCapabilities class.

 

Properties

The TouchCapabilities class has these properties.

PropertyAccess typeDescription

Contacts

Read-onlyGets the minimum number of contacts supported by all the digitizers.

TouchPresent

Read-onlyGets a value that indicates whether a touch digitizer is detected.

 

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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Input
Windows::Devices::Input [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Input
Windows::Devices::Input [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
Windows.Devices.Input
Quickstarts
Quickstart: Identifying input devices

 

 

Show:
© 2015 Microsoft