Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for InputDeviceCapabilities API.
Developer library 6
InputDeviceCapabilities API
Input Device Capabilities API The InputDeviceCapabilities API provides details about the underlying sources of input events. The API attempts to describe how the device behaves rather than what it is. For example, the first version of the API indicates whether a device fires touch events rather than whether it is a touch screen. ## Input device capabilities concepts and usage Because DOM events abstract device inp
InputDeviceCapabilities
Input Device Capabilities API The **`InputDeviceCapabilities`** interface of the Input Device Capabilities API provides information about the physical device or a group of related devices responsible for generating input events. Events caused by the same physical input device get the same instance of this object, but the converse isn't true. For example, two mice with the same capabilities in a system may appear as
InputDeviceCapabilities: InputDeviceCapabilities() constructor
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 ```js-nolint new InputDeviceCapabilities() new InputDeviceCapabilities(InputDeviceCapabilitiesInit) ``` ### Parameters - `InputDeviceCapabilitiesInit` - : A dictionary object containing a set of
InputDeviceCapabilities: firesTouchEvents property
Input Device Capabilities API The **`firesTouchEvents`** read-only property of the InputDeviceCapabilities interface returns a boolean value that indicates whether the device dispatches touch events. You can use this property to detect mouse events that represent an action that may already have been handled by touch event handlers. This doesn't necessarily mean the device is a touch screen. For example, stylus and
UIEvent
vent.detail - : Returns a `long` with details about the event, depending on the event type. - UIEvent.sourceCapabilities - : Returns an instance of the `InputDeviceCapabilities` interface, which provides information about the physical device responsible for generating a touch event. - UIEvent.view - : Returns a WindowProxy that contains the view that generated the event. - UIEvent.which - : Returns the
UIEvent: sourceCapabilities property
Input Device Capabilities API The **`sourceCapabilities`** read-only property of the UIEvent interface returns an instance of the InputDeviceCapabilities interface which provides information about the physical device responsible for generating a touch event. If no input device was responsible for the event, it returns `null`. When a single user interaction with an input device generates a series of different input