Class InputDeviceCapabilities
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalInputDeviceCapabilities 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.
Constructors
InputDeviceCapabilities()
public InputDeviceCapabilities()
InputDeviceCapabilities(InputDeviceCapabilitiesInit)
NOTE
ExperimentalInputDeviceCapabilities() constructor creates a newInputDeviceCapabilities object provides information about the physical
device responsible for generating a touch event.
public InputDeviceCapabilities(InputDeviceCapabilitiesInit deviceInitDict = null)
Parameters
deviceInitDictInputDeviceCapabilitiesInit
Remarks
Properties
FiresTouchEvents
NOTE
ExperimentalfiresTouchEvents 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.
PointerMovementScrolls
[Value("pointerMovementScrolls")]
public bool PointerMovementScrolls { get; }