Platform SDK: DirectX

DirectInputDeviceObjectInstance.GetUsagePage

The DirectInputDeviceObjectInstance.GetUsagePage method retrieves the Human Interface Device usage page for the device object.

object.GetUsagePage() As Integer

Parameters

object
Object expression that resolves to a DirectInputDeviceObjectInstance object.

Return Values

The method returns the HID usage page associated with the object, if known. Human Interface Devices will always report a usage page. Non-HID devices may optionally report a usage page; if they do not, then the value of this member will be zero.

Error Codes

If the method fails, an error is raised and Err.Number will be set.

See Also

DirectInputDeviceObjectInstance.GetUsage