Microsoft DirectX 8.1 (Visual Basic)

DirectInputDeviceObjectInstance.GetUsage

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

object.GetUsage() As Integer

Parts

object
Resolves to a DirectInputDeviceObjectInstance object.

Return Values

Returns the HID usage associated with the object, if known. HIDs always report a usage. Non-HID devices might report a usage; 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.GetUsagePage