Microsoft DirectX 8.1 (Visual Basic)

DirectInputDeviceObjectInstance.GetUsagePage

Retrieves the Human Interface Device (HID) usage page for the device object.

object.GetUsagePage() As Integer

Parts

object
Resolves to a DirectInputDeviceObjectInstance object.

Return Values

Returns the HID usage page associated with the object, if known. (HIDs) will always report a usage page. Non-HID devices might report a usage page; if they do not, the return value is zero.

Error Codes

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

See Also

DirectInputDeviceObjectInstance.GetUsage