The InputDeviceCapabilities()
constructor creates a new InputDeviceCapabilities
object provides information about the physical device responsible for generating a touch event.
InputDeviceCapabilities
Syntax
new 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 value that indicates whether the device dispatches touch events.
-
Specifications
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
InputDeviceCapabilities |
47
|
79
|
No
|
No
|
34
|
No
|
47
|
47
|
No
|
34
|
No
|
5.0
|
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceCapabilities/InputDeviceCapabilities