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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Non-standard
Chrome Full support 47Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android Full support 47Chrome Android Full support 47Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.

Document Tags and Contributors

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