Gets the Human Interface Device (HID) usage value of the raw input.
public:
int32 GetUsageValue(
uint32 usagePage,
uint32 usageId
)
usagePage
Type: uint32
The Human Interface Device (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: uint32
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).
Type: int32
The extended usage of the raw input pointer.
The core of the Microsoft interactive input device architecture is based on the Universal Serial Bus (USB) standard Device Class Definition for Human Interface Devices (HIDs), which is defined by the Universal Serial Bus (USB) Implementers Forum, Inc.
The Universal Serial Bus (USB) Human Interface Device (HID) standard defines the configuration and communication protocols for Human Interface Devices (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 Universal Serial Bus (USB) Human Interface Device (HID) standard, the architecture is not limited to Universal Serial Bus (USB) devices. The input architecture also supports serial port devices, i8042 port devices, and proprietary input devices.
HasUsage
This API is not implemented and will throw an exception if called.
Namespace: Windows.UI.Input
Metadata: windows.winmd