DirectX SDK

DirectInputDeviceInstance.GetUsage

The DirectInputDeviceInstance.GetUsage method retrieves the usage code for Human Interface Devices.

object.GetUsage() As Integer

Parameters

object
Object expression that resolves to a DirectInputDeviceInstance object.

Return Values

If the device is a HID, the method returns the usage code.

Error Codes

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

See Also

DirectInputDeviceInstance.GetUsagePage