InputDeviceCapabilities

The InputDeviceCapabilities() constructor creates a new InputDeviceCapabilities object provides information about the physical device responsible for generating a touch event.

Syntax

var inputDeviceCapabilities = new InputDeviceCapabilities([InputDeviceCapabilitiesInit])

Returns

An instance of the InputDeviceCapabilities interface.

Parameters

InputDeviceCapabilitiesInit Optional
A dictionary object containing a set of device capabilities. It contains the following property.
  • fireTouchEvents: A Boolean that indicates whether the device dispatches touch events.

Specifications

Specification Status Comment
InputDeviceCapabilities Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support47 ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4747 ? ? ? ? ?

Document Tags and Contributors

Contributors to this page: connorshea, rolfedh, jpmedley
Last updated by: connorshea,