Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.22 KB

keyboardcapabilities.md

File metadata and controls

34 lines (22 loc) · 1.22 KB
-api-id -api-type
T:Windows.Devices.Input.KeyboardCapabilities
winrt class

Windows.Devices.Input.KeyboardCapabilities

-description

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

-remarks

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 create an instance of this class and use it to determine if a keyboard is present.

function getKeyboardCapabilities() {
  var keyboardCapabilities = new Windows.Devices.Input.KeyboardCapabilities();
  id("keyboardPresent").innerHTML = keyboardCapabilities.keyboardPresent;
}

-examples

-see-also

Identify input devices, Basic input sample (Windows 10)