DirectX SDK |
The DirectInputDeviceInstance.GetUsage method retrieves the usage code for Human Interface Devices.
object.GetUsage() As Integer
If the device is a HID, the method returns the usage code.
If the method fails, an error is raised and Err.Number will be set.