Platform SDK: DirectX

DirectInputDeviceObjectInstance.GetUsage

The DirectInputDeviceObjectInstance.GetUsage method retrieves the Human Interface Device usage code for the device object.

object.GetUsage() As Integer

Parameters

object
Object expression that resolves to a DirectInputDeviceObjectInstance object.

Return Values

The method returns the HID usage associated with the object, if known. Human Interface Devices will always report a usage. Non-HID devices may optionally report a usage; 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.GetUsagePage