Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PointerPointProperties.GetUsageValue | getUsageValue method

Applies to Windows and Windows Phone

Gets the Human Interface Device (HID) usage value of the raw input.

Syntax


var number = pointerPointProperties.getUsageValue(usagePage, usageId);

Parameters

usagePage

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The HID usage page of the pointer device.

Usage pages specify the class of device. For example, touch digitizers (0x0D) and generic input (0x01).

usageId

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

Indicates a usage in a usage page.

Usage IDs specify a device or property in the usagePage. For example, for touch digitizers this includes tip switch (0x42) to indicate finger contact or tip pressure (0x30).

Return value

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The extended usage of the raw input pointer.

Remarks

The core of the Microsoft interactive input device architecture is based on the Universal Serial Bus (USB) standard Device Class Definition for HIDs, which is defined by the USB Implementers Forum, Inc.

The USB HID standard defines the configuration and communication protocols for HIDs, such as keyboards, mouse devices, joysticks, and virtual reality devices, that humans use to enter data directly into a computer. (For detailed information about the USB HID standard, see the USB Implementers Forum website.)

Although the core of the Windows input architecture is based on the USB HID standard, the architecture is not limited to USB devices. The input architecture also supports serial port devices, i8042 port devices, and proprietary input devices.

HasUsage

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

PointerPointProperties
HasUsage
HID Information

 

 

Show:
© 2014 Microsoft