GetUsageValue | getUsageValue method

PointerPointProperties.GetUsageValue | getUsageValue method

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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2016 Microsoft