Input Device Capabilities API
The InputDeviceCapabilities() constructor creates a new
InputDeviceCapabilities object provides information about the physical
device responsible for generating a touch event.
Syntax
new InputDeviceCapabilities()
new InputDeviceCapabilities(InputDeviceCapabilitiesInit)
Parameters
InputDeviceCapabilitiesInit- : 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.
- : A dictionary object containing a set of device capabilities. It contains the
following property.
Return value
An instance of the InputDeviceCapabilities interface.
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
