Table of Contents

Class InputDeviceCapabilities

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The InputDeviceCapabilities interface of the {{domxref("InputDeviceCapabilities API", "Input Device Capabilities API", "", "nocode")}} 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 a single InputDeviceCapabilities instance.
[Value("InputDeviceCapabilities")]
public class InputDeviceCapabilities
Inheritance
InputDeviceCapabilities
Inherited Members

Remarks

In some instances, InputDeviceCapabilities represents the capabilities of logical devices rather than physical devices. This allows, for example, touchscreen keyboards and physical keyboards to be represented the same way when they produce the same input.

See also on MDN

Constructors

InputDeviceCapabilities()

public InputDeviceCapabilities()

InputDeviceCapabilities(InputDeviceCapabilitiesInit)

NOTE
Experimental
The InputDeviceCapabilities() constructor creates a new
InputDeviceCapabilities object provides information about the physical
device responsible for generating a touch event.
public InputDeviceCapabilities(InputDeviceCapabilitiesInit deviceInitDict = null)

Parameters

deviceInitDict InputDeviceCapabilitiesInit

Remarks

Properties

FiresTouchEvents

NOTE
Experimental
The firesTouchEvents read-only property of the InputDeviceCapabilities interface returns a boolean value that indicates whether the device dispatches touch events.
[Value("firesTouchEvents")]
public bool FiresTouchEvents { get; }

Property Value

bool

A 'Boolean'

Remarks

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 mouse devices typically generate
touch events on mobile browsers.

See also on MDN

PointerMovementScrolls

[Value("pointerMovementScrolls")]
public bool PointerMovementScrolls { get; }

Property Value

bool