DirectX SDK |
The DirectInputDeviceObjectInstance.GetUsage method retrieves the Human Interface Device usage code for the device object.
object.GetUsage() As Integer
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.
If the method fails, an error is raised and Err.Number will be set.