Skip to main content

Windows Dev Center

KeyboardCapabilities class

Supports the ability to determine the capabilities of any connected hardware keyboards.

Syntax


var keyboardCapabilities = new Windows.Devices.Input.KeyboardCapabilities();

public sealed class KeyboardCapabilities

Public NotInheritable Class KeyboardCapabilities

public ref class KeyboardCapabilities sealed 

Members

The KeyboardCapabilities class has these types of members:

Constructors

The KeyboardCapabilities class has these constructors.

ConstructorDescription
KeyboardCapabilities Initializes a new instance of the KeyboardCapabilities class.

 

Properties

The KeyboardCapabilities class has these properties.

PropertyAccess typeDescription

KeyboardPresent

Read-onlyGets a value that indicates whether a hardware keyboard is detected.

 

Remarks

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
Quickstarts
Quickstart: Identifying input devices
Reference
Windows.Devices.Input